play.server
Class ServletWrapper
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
play.server.ServletWrapper
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, Servlet, ServletConfig, ServletContextListener
public class ServletWrapper
- extends HttpServlet
- implements ServletContextListener
Servlet implementation.
Thanks to Lee Breisacher.
- See Also:
- Serialized Form
Method Summary |
void |
contextDestroyed(ServletContextEvent e)
|
void |
contextInitialized(ServletContextEvent e)
|
void |
copyResponse(Http.Request request,
Http.Response response,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
|
void |
destroy()
|
static boolean |
isGreaterThan(ServletContext context,
int majorVersion,
int minorVersion)
|
static boolean |
isModified(java.lang.String etag,
long last,
HttpServletRequest request)
|
static Http.Request |
parseRequest(HttpServletRequest httpServletRequest)
|
void |
serve404(HttpServletRequest servletRequest,
HttpServletResponse servletResponse,
NotFound e)
|
void |
serve500(java.lang.Exception e,
HttpServletRequest request,
HttpServletResponse response)
|
void |
serveStatic(HttpServletResponse servletResponse,
HttpServletRequest servletRequest,
RenderStatic renderStatic)
|
protected void |
service(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletWrapper
public ServletWrapper()
contextInitialized
public void contextInitialized(ServletContextEvent e)
- Specified by:
contextInitialized
in interface ServletContextListener
contextDestroyed
public void contextDestroyed(ServletContextEvent e)
- Specified by:
contextDestroyed
in interface ServletContextListener
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
isGreaterThan
public static boolean isGreaterThan(ServletContext context,
int majorVersion,
int minorVersion)
service
protected void service(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
java.io.IOException
- Overrides:
service
in class HttpServlet
- Throws:
ServletException
java.io.IOException
serveStatic
public void serveStatic(HttpServletResponse servletResponse,
HttpServletRequest servletRequest,
RenderStatic renderStatic)
throws java.io.IOException
- Throws:
java.io.IOException
isModified
public static boolean isModified(java.lang.String etag,
long last,
HttpServletRequest request)
parseRequest
public static Http.Request parseRequest(HttpServletRequest httpServletRequest)
throws java.lang.Exception
- Throws:
java.lang.Exception
serve404
public void serve404(HttpServletRequest servletRequest,
HttpServletResponse servletResponse,
NotFound e)
serve500
public void serve500(java.lang.Exception e,
HttpServletRequest request,
HttpServletResponse response)
copyResponse
public void copyResponse(Http.Request request,
Http.Response response,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
throws java.io.IOException
- Throws:
java.io.IOException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly