Class WekeoResolver
- java.lang.Object
-
- org.gcube.datatransfer.resolver.services.WekeoResolver
-
@Path("wekeo") public class WekeoResolver extends ObjectThe 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 Summary
Constructors Constructor Description WekeoResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetToken(javax.servlet.http.HttpServletRequest req)Gets the token.InputStreamindex(javax.servlet.http.HttpServletRequest req)Index.static org.gcube.common.resources.gcore.ServiceEndpoint.AccessPointreadWekeoServiceEndpoint(javax.servlet.http.HttpServletRequest req, String scope)Reads the wekeo endpoint information from IS.
-
-
-
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.WebApplicationExceptionGets 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.WebApplicationExceptionIndex.- 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 reqscope- the scope- Returns:
- the string
-
-