Class WekeoResolver


  • @Path("wekeo")
    public class WekeoResolver
    extends Object
    The WekeoResolver provides a method to wrap the basic authentication from D4Science account to WekeoBroker service. See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#Wekeo_Resolver
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 24, 2022
    • Constructor Detail

      • WekeoResolver

        public WekeoResolver()
    • Method Detail

      • getToken

        @GET
        @Path("/gettoken")
        @Produces("application/json")
        public javax.ws.rs.core.Response getToken​(@Context
                                                  javax.servlet.http.HttpServletRequest req)
                                           throws javax.ws.rs.WebApplicationException
        Gets the token.
        Parameters:
        req - the req
        Returns:
        the token
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception
      • index

        @GET
        @Produces("text/html")
        @Path("")
        public InputStream index​(@Context
                                 javax.servlet.http.HttpServletRequest req)
                          throws javax.ws.rs.WebApplicationException
        Index.
        Parameters:
        req - the req
        Returns:
        the input stream
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception
      • readWekeoServiceEndpoint

        public static org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint readWekeoServiceEndpoint​(javax.servlet.http.HttpServletRequest req,
                                                                                                            String scope)
        Reads the wekeo endpoint information from IS. {The SE name is: @link WekeoResolver#RUNTIME_WKEO_RESOURCE_NAME}
        Parameters:
        req - the req
        scope - the scope
        Returns:
        the string