Class SMPIDResolver


  • @Path("id")
    public class SMPIDResolver
    extends Object
    The SMPIDResolver is able to give HTTP resolution to storage resource by ID. See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#SMP-ID_Resolver
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Mar 24, 2022
    • Constructor Detail

      • SMPIDResolver

        public SMPIDResolver()
    • Method Detail

      • getSMPID

        @GET
        @Path("")
        public javax.ws.rs.core.Response getSMPID​(@Context
                                                  javax.servlet.http.HttpServletRequest req,
                                                  @QueryParam("smp-id") @Nullable
                                                  String smpId,
                                                  @QueryParam("fileName")
                                                  String fileName,
                                                  @QueryParam("contentType")
                                                  String contentType,
                                                  @QueryParam("content-disposition")
                                                  String contentDisposition,
                                                  @QueryParam("validation")
                                                  boolean validation)
                                           throws javax.ws.rs.WebApplicationException
        Gets the smpid.
        Parameters:
        req - the req
        smpId - the smp id
        fileName - the file name
        contentType - the content type
        contentDisposition - the content disposition
        validation - the validation
        Returns:
        the smpid
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception