Class ResourceProvider


  • public abstract class ResourceProvider
    extends Object
    • Constructor Detail

      • ResourceProvider

        public ResourceProvider()
    • Method Detail

      • setProxy

        public void setProxy​(String proxy)
      • setHttpRequest

        public void setHttpRequest​(Object httpRequest,
                                   Object httpResponse)
        Parameters:
        httpRequest - javax.servlet or jakarta.servlet HttpServletRequest
        httpResponse - javax.servlet or jakarta.servlet HttpServletResponse
      • setHttpRequest

        public void setHttpRequest​(javax.servlet.http.HttpServletRequest httpRequest,
                                   javax.servlet.http.HttpServletResponse httpResponse)
        Deprecated.
        binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it. Use setHttpRequest(Object, Object).
      • setBasicAuthentication

        public void setBasicAuthentication​(String basicAuthentication)
      • setSessionID

        public void setSessionID​(String sessionID)
      • setServletContext

        public void setServletContext​(Object ctx)
        Parameters:
        ctx - javax.servlet or jakarta.servlet ServletContext
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext ctx)
        Deprecated.
        binary compatibility with code compiled against earlier PD4ML versions only; the build marks it synthetic, so compilers do not see it. Use setServletContext(Object).
      • enable404

        public void enable404()
      • getEncoding

        public String getEncoding()
      • isGzipped

        public boolean isGzipped()
      • getResourceAsBytes

        public abstract byte[] getResourceAsBytes​(String resource,
                                                  boolean debug)
                                           throws IOException
        Throws:
        IOException