Class ResourceWrapper

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

public class ResourceWrapper extends Object implements Resource
  • Constructor Details

    • ResourceWrapper

      public ResourceWrapper(Resource delegate)
  • Method Details

    • getInputStream

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

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

      public String getName()
      Specified by:
      getName in interface Resource
    • getLastModified

      public Date getLastModified()
      Specified by:
      getLastModified in interface Resource
    • getExpires

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

      public 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 File getAsFile()
      Specified by:
      getAsFile in interface Resource
    • lastModified

      public Resource lastModified(Date date)
      Specified by:
      lastModified in interface Resource
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object