fnug.servlet
Class ToServeResource

java.lang.Object
  extended by fnug.servlet.ToServeResource
All Implemented Interfaces:
HasLastModifiedBytes, ToServe

public class ToServeResource
extends Object
implements ToServe


Constructor Summary
ToServeResource(Resource res, String jsonp)
           
 
Method Summary
 boolean futureExpires()
           
 byte[] getBytes()
          The bytes.
 String getContentType()
           
 long getLastModified()
          The timestamp when the bytes were last changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToServeResource

public ToServeResource(Resource res,
                       String jsonp)
Method Detail

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


Copyright © 2012. All Rights Reserved.