## org.mortbay.servlet
Class RestFilter

    java.lang.Object
      org.mortbay.servlet.RestFilter

All Implemented Interfaces:
  Filter

    public class RestFilter

extends 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.

Author:
  Aleksi Kallio

Constructor Summary
`RestFilter()`

Method Summary
`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)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RestFilter

    public RestFilter()

Method Detail

### init

    public void init(FilterConfig filterConfig)
              throws UnavailableException

  Specified by:
    `init` in interface `Filter`
  Throws:
    `UnavailableException`

### doFilter

    public void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain chain)
                  throws IOException,
                         ServletException

  Specified by:
    `doFilter` in interface `Filter`
  Throws:
    `IOException`
    `ServletException`

### doPut

    protected void doPut(HttpServletRequest request,
                         HttpServletResponse response)
                  throws ServletException,
                         IOException

  Parameters:
    `request` -
    `response` -
  Throws:
    `ServletException`
    `IOException`

### doDelete

    protected void doDelete(HttpServletRequest request,
                            HttpServletResponse response)
                     throws ServletException,
                            IOException

  Parameters:
    `request` -
    `response` -
  Throws:
    `ServletException`
    `IOException`

### destroy

    public void destroy()

  Specified by:
    `destroy` in interface `Filter`

Copyright © 1995-2008 Mort Bay Consulting. All Rights Reserved.