fnug.servlet
Class ToServeResource
java.lang.Object
fnug.servlet.ToServeResource
- All Implemented Interfaces:
- HasLastModifiedBytes, ToServe
public class ToServeResource
- extends Object
- implements ToServe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToServeResource
public ToServeResource(Resource res,
String jsonp)
getBytes
public byte[] getBytes()
- Description copied from interface:
HasLastModifiedBytes
- The bytes.
- Specified by:
getBytes
in interface HasLastModifiedBytes
- Returns:
- the timestamped bytes.
getLastModified
public long getLastModified()
- Description copied from interface:
HasLastModifiedBytes
- The timestamp when the bytes were last changed.
- Specified by:
getLastModified
in interface HasLastModifiedBytes
- Returns:
- the last modified of the
HasLastModifiedBytes.getBytes()
.
futureExpires
public boolean futureExpires()
- Specified by:
futureExpires
in interface ToServe
getContentType
public String getContentType()
- Specified by:
getContentType
in interface ToServe
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interface ToServe
Copyright © 2012. All Rights Reserved.