net.stepniak.api.utils
Class StaticServlet.StaticFile
java.lang.Object
net.stepniak.api.utils.StaticServlet.StaticFile
- All Implemented Interfaces:
- StaticServlet.LookupResult
- Enclosing class:
- StaticServlet
public static class StaticServlet.StaticFile
- extends Object
- implements StaticServlet.LookupResult
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
StaticServlet.StaticFile
public StaticServlet.StaticFile(long lastModified,
String mimeType,
int contentLength,
boolean acceptsDeflate,
URL url)
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.