fnug.servlet
Class Bootstrap

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

public class Bootstrap
extends Object
implements ToServe


Constructor Summary
Bootstrap(org.codehaus.jackson.map.ObjectMapper mapper, String baseUrl, Bundle bundle, boolean add)
           
 
Method Summary
protected static String escape(String s, int length)
           
 boolean futureExpires()
           
 byte[] getBytes()
          The bytes.
 String getCharacterEncoding()
           
 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

Bootstrap

public Bootstrap(org.codehaus.jackson.map.ObjectMapper mapper,
                 String baseUrl,
                 Bundle bundle,
                 boolean add)
Method Detail

escape

protected static String escape(String s,
                               int length)

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.