Class ResourceWrapper

  • All Implemented Interfaces:
    Resource

    public class ResourceWrapper
    extends java.lang.Object
    implements Resource
    • Constructor Detail

      • ResourceWrapper

        public ResourceWrapper​(Resource delegate)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in interface Resource
      • getLength

        public long getLength()
        Specified by:
        getLength in interface Resource
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Resource
      • getExpires

        public java.util.Date getExpires()
        Specified by:
        getExpires in interface Resource
      • getMimeType

        public java.lang.String getMimeType()
        Specified by:
        getMimeType in interface Resource
      • isAttachment

        public boolean isAttachment()
        Specified by:
        isAttachment in interface Resource
        Returns:
        true if this resource should be handled by the browser by showing a "Save As" dialogue (HTTP header Content-Disposition: attachment), false if the browser should attempt to embed or display the resource directly (HTTP header Content-Disposition: inline).
      • getAsFile

        public java.io.File getAsFile()
        Specified by:
        getAsFile in interface Resource