Class SMPResolver


  • @Path("smp")
    public class SMPResolver
    extends Object
    The 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 Detail

      • SMPResolver

        public SMPResolver()
    • 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.WebApplicationException
        Gets the smpuri.
        Parameters:
        req - the req
        smpURI - the smp uri
        fileName - the file name
        contentType - the content type
        contentDisposition - the content disposition
        validation - the validation
        Returns:
        the smpuri
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception