Class ResourceWrapper

java.lang.Object
org.teamapps.ux.resource.ResourceWrapper
All Implemented Interfaces:
Resource

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

    • ResourceWrapper

      public ResourceWrapper​(Resource delegate)
  • Method Details

    • 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
    • getLastModified

      public java.util.Date getLastModified()
      Specified by:
      getLastModified 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
    • lastModified

      public Resource lastModified​(java.util.Date date)
      Specified by:
      lastModified in interface Resource