Package org.teamapps.ux.resource
Class ResourceWrapper
java.lang.Object
org.teamapps.ux.resource.ResourceWrapper
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetName()inthashCode()booleanlastModified(Date date) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.teamapps.ux.resource.Resource
asAttachment, expiring, withMimeType
-
Constructor Details
-
ResourceWrapper
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfaceResource
-
getLength
-
getName
-
getLastModified
- Specified by:
getLastModifiedin interfaceResource
-
getExpires
- Specified by:
getExpiresin interfaceResource
-
getMimeType
- Specified by:
getMimeTypein interfaceResource
-
isAttachment
public boolean isAttachment()- Specified by:
isAttachmentin interfaceResource- 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
-
lastModified
- Specified by:
lastModifiedin interfaceResource
-
equals
-
hashCode
-