public class CachedFileResource extends StreamableWebResource
| Constructor and Description |
|---|
CachedFileResource(File file) |
| Modifier and Type | Method and Description |
|---|---|
Long |
getContentLength() |
String |
getContentType() |
Integer |
getErrorCode() |
String |
getErrorMessage() |
Long |
getExpiry() |
String |
getFileName() |
Long |
getLastModified() |
String |
getTextEncoding() |
StreamableWebResource |
setExpiry(Long expiry) |
void |
setFileName(String fileName) |
void |
write(OutputStream os) |
public CachedFileResource(File file)
public void write(OutputStream os) throws IOException
write in class StreamableWebResourceIOExceptionpublic Integer getErrorCode()
getErrorCode in class StreamableWebResourcepublic String getErrorMessage()
getErrorMessage in class StreamableWebResourcepublic String getFileName()
getFileName in class StreamableWebResourcepublic String getContentType()
getContentType in class StreamableWebResourcepublic String getTextEncoding()
getTextEncoding in class StreamableWebResourcepublic Long getContentLength()
getContentLength in class StreamableWebResourcepublic Long getLastModified()
getLastModified in class StreamableWebResourcepublic Long getExpiry()
getExpiry in class StreamableWebResourcepublic StreamableWebResource setExpiry(Long expiry)
public void setFileName(String fileName)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.