Class SMPResolver
- java.lang.Object
-
- org.gcube.datatransfer.resolver.services.SMPResolver
-
@Path("smp") public class SMPResolver extends ObjectThe SMPResolver is able to give HTTP resolution to SMP protocol URIs See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#SMP_Resolver- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 24, 2022
-
-
Constructor Summary
Constructors Constructor Description SMPResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetSMPURI(javax.servlet.http.HttpServletRequest req, String smpURI, String fileName, String contentType, String contentDisposition, boolean validation)Gets the smpuri.
-
-
-
Method Detail
-
getSMPURI
@GET @Path("") public javax.ws.rs.core.Response getSMPURI(@Context javax.servlet.http.HttpServletRequest req, @QueryParam("smp-uri") @Nullable String smpURI, @QueryParam("fileName") String fileName, @QueryParam("contentType") String contentType, @QueryParam("content-disposition") String contentDisposition, @QueryParam("validation") boolean validation) throws javax.ws.rs.WebApplicationExceptionGets the smpuri.- Parameters:
req- the reqsmpURI- the smp urifileName- the file namecontentType- the content typecontentDisposition- the content dispositionvalidation- the validation- Returns:
- the smpuri
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
-