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

    Modifier and Type Method Description
    protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
    protected void doHead​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class javax.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 class javax.servlet.http.HttpServlet
      Throws:
      java.io.IOException