net.stepniak.api.utils
Class StaticServlet.StaticFile

java.lang.Object
  extended by net.stepniak.api.utils.StaticServlet.StaticFile
All Implemented Interfaces:
StaticServlet.LookupResult
Enclosing class:
StaticServlet

public static class StaticServlet.StaticFile
extends Object
implements StaticServlet.LookupResult


Field Summary
protected  boolean acceptsDeflate
           
protected  int contentLength
           
protected  long lastModified
           
protected  String mimeType
           
protected  URL url
           
 
Constructor Summary
StaticServlet.StaticFile(long lastModified, String mimeType, int contentLength, boolean acceptsDeflate, URL url)
           
 
Method Summary
 long getLastModified()
           
 void respondGet(javax.servlet.http.HttpServletResponse resp)
           
 void respondHead(javax.servlet.http.HttpServletResponse resp)
           
protected  void setHeaders(javax.servlet.http.HttpServletResponse resp)
           
protected  boolean willDeflate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastModified

protected final long lastModified

mimeType

protected final String mimeType

contentLength

protected final int contentLength

acceptsDeflate

protected final boolean acceptsDeflate

url

protected final URL url
Constructor Detail

StaticServlet.StaticFile

public StaticServlet.StaticFile(long lastModified,
                                String mimeType,
                                int contentLength,
                                boolean acceptsDeflate,
                                URL url)
Method Detail

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface StaticServlet.LookupResult

willDeflate

protected boolean willDeflate()

setHeaders

protected void setHeaders(javax.servlet.http.HttpServletResponse resp)

respondGet

public void respondGet(javax.servlet.http.HttpServletResponse resp)
                throws IOException
Specified by:
respondGet in interface StaticServlet.LookupResult
Throws:
IOException

respondHead

public void respondHead(javax.servlet.http.HttpServletResponse resp)
Specified by:
respondHead in interface StaticServlet.LookupResult


Copyright © 2013. All Rights Reserved.