Class AbstractResource

    • Field Detail

      • sm

        protected static final StringManager sm
        The string manager for this class.
    • Constructor Detail

      • AbstractResource

        protected AbstractResource​(WebResourceRoot root,
                                   java.lang.String webAppPath)
        Constructs a new AbstractResource.
        Parameters:
        root - The root
        webAppPath - The web app path
    • Method Detail

      • getWebappPath

        public final java.lang.String getWebappPath()
        Gets the web app path.
        Specified by:
        getWebappPath in interface WebResource
        Returns:
        The web app path
      • getLastModifiedHttp

        public final java.lang.String getLastModifiedHttp()
        Gets the last modified date as an HTTP date string.
        Specified by:
        getLastModifiedHttp in interface WebResource
        Returns:
        The last modified date as an HTTP date string
      • getETag

        public final java.lang.String getETag()
        Gets the weak ETag for this resource.
        Specified by:
        getETag in interface WebResource
        Returns:
        The weak ETag
      • getStrongETag

        public final java.lang.String getStrongETag()
        Gets the strong ETag for this resource.
        Specified by:
        getStrongETag in interface WebResource
        Returns:
        The strong ETag
      • setMimeType

        public final void setMimeType​(java.lang.String mimeType)
        Sets the MIME type for this resource.
        Specified by:
        setMimeType in interface WebResource
        Parameters:
        mimeType - The MIME type
      • getMimeType

        public final java.lang.String getMimeType()
        Gets the MIME type for this resource.
        Specified by:
        getMimeType in interface WebResource
        Returns:
        The MIME type
      • getInputStream

        public final java.io.InputStream getInputStream()
        Gets the input stream for this resource.
        Specified by:
        getInputStream in interface WebResource
        Returns:
        the input stream for this resource
      • doGetInputStream

        protected abstract java.io.InputStream doGetInputStream()
        Returns the input stream for this resource.
        Returns:
        the input stream for this resource
      • getLog

        protected abstract Log getLog()
        Gets the logger for this resource.
        Returns:
        the logger