Package com.qwazr.server
Class StaticFileServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.qwazr.server.StaticFileServlet
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class StaticFileServlet
extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description StaticFileServlet(javax.activation.MimetypesFileTypeMap mimeTypeMap, java.nio.file.Path staticPath, int expirationSecTime)
-
Method Summary
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
Constructor Details
-
StaticFileServlet
public StaticFileServlet(javax.activation.MimetypesFileTypeMap mimeTypeMap, java.nio.file.Path staticPath, int expirationSecTime)
-
-
Method Details
-
doHead
protected void doHead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException- Overrides:
doHead
in classjavax.servlet.http.HttpServlet
- Throws:
java.io.IOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
java.io.IOException
-