org.apache.abdera.protocol.server.servlet
Class AbstractFilter

java.lang.Object
  extended by org.apache.abdera.protocol.server.servlet.AbstractFilter
All Implemented Interfaces:
javax.servlet.Filter
Direct Known Subclasses:
AbderaFilter, CompressionFilter, MethodOverrideFilter

public abstract class AbstractFilter
extends java.lang.Object
implements javax.servlet.Filter

Utility class that serves as the basis for a variety of Filter implementations


Nested Class Summary
static class AbstractFilter.BufferedRequestWrapper
          Implementation of HttpServletRequestWrapper that allows a Filter to perform operations on the full content of a request while still allowing downstream operations to be performed on the content.
static class AbstractFilter.BufferedServletInputStream
           
static class AbstractFilter.BufferingResponseWrapper
          A HttpServletResponseWrapper implementation that buffers the response content in memory so that a filter can perform operations on the full response content (e.g.
static class AbstractFilter.BufferingServletOutputStream
          Implementation of ServletOutputStream that handles the in-memory buffering of the response content
static class AbstractFilter.CompressingResponseWrapper
          A HttpServletResponseWrapper implementation that applies GZip or Deflate compression to response output.
static class AbstractFilter.CompressingServletOutputStream
          A ServletOutputStream implementation that handles the GZip and Deflate compression for the CompressingResponseWrapper
 
Constructor Summary
AbstractFilter()
           
 
Method Summary
 void destroy()
           
protected  javax.servlet.FilterConfig getConfig()
           
 void init(javax.servlet.FilterConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
doFilter
 

Constructor Detail

AbstractFilter

public AbstractFilter()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

getConfig

protected javax.servlet.FilterConfig getConfig()