public class RestFilter extends java.lang.Object implements Filter
Support for HTTP PUT and DELETE methods.
THIS FILTER SHOULD ONLY BE USED WITH VERY GOOD SECURITY CONSTRAINTS!
If the filter init parameter maxPutSize is set to a positive integer, then only puts of known size less than maxPutSize will be accepted.
Constructor and Description |
---|
RestFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doDelete(HttpServletRequest request,
HttpServletResponse response) |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
protected void |
doPut(HttpServletRequest request,
HttpServletResponse response) |
void |
init(FilterConfig filterConfig) |
public void init(FilterConfig filterConfig) throws UnavailableException
init
in interface Filter
UnavailableException
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException
doFilter
in interface Filter
java.io.IOException
ServletException
protected void doPut(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
- ServletException
java.io.IOException
protected void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- response
- ServletException
java.io.IOException
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.