Class UriResolverReaderParameter


  • public class UriResolverReaderParameter
    extends Object
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
    • Field Detail

      • logger

        public static org.apache.log4j.Logger logger
    • Constructor Detail

      • UriResolverReaderParameter

        public UriResolverReaderParameter​(String context)
                                   throws Exception
        Parameters:
        context - the current infrastructure context (scope)
        Throws:
        Exception
    • Method Detail

      • resolveAsUriRequest

        public String resolveAsUriRequest​(String smp,
                                          String fileName,
                                          String contentType,
                                          boolean encodeParams)
                                   throws Exception
        Parameters:
        smp -
        fileName -
        contentType -
        encodeParams - - if true, translates a string into application/x-www-form-urlencoded format using a specific encoding scheme
        Returns:
        the http url to get file
        Throws:
        Exception
      • isAvailable

        public boolean isAvailable()
      • getBaseUri

        public String getBaseUri()
      • getSmpParameter

        public String getSmpParameter()
      • getFileNameParameter

        public String getFileNameParameter()
      • getContentTypeParameter

        public String getContentTypeParameter()
      • getQuery

        public String getQuery()