winstone
Class FilterConfiguration

java.lang.Object
  extended by winstone.FilterConfiguration
All Implemented Interfaces:
FilterConfig

public class FilterConfiguration
extends java.lang.Object
implements FilterConfig

Corresponds to a filter object in the web app. Holds one instance only.

Author:
Rick Knowles

Constructor Summary
protected FilterConfiguration(ServletContext context, java.lang.ClassLoader loader)
           
  FilterConfiguration(ServletContext context, java.lang.ClassLoader loader, org.w3c.dom.Node elm)
          Constructor
 
Method Summary
 void destroy()
          Called when it's time for the container to shut this servlet down.
 void execute(ServletRequest request, ServletResponse response, FilterChain chain)
           
 Filter getFilter()
          Implements the first-time-init of an instance, and wraps it in a dispatcher.
 java.lang.String getFilterName()
           
 java.lang.String getInitParameter(java.lang.String paramName)
           
 java.util.Enumeration getInitParameterNames()
           
 ServletContext getServletContext()
           
 boolean isUnavailable()
           
protected  void setUnavailable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterConfiguration

protected FilterConfiguration(ServletContext context,
                              java.lang.ClassLoader loader)

FilterConfiguration

public FilterConfiguration(ServletContext context,
                           java.lang.ClassLoader loader,
                           org.w3c.dom.Node elm)
Constructor

Method Detail

getFilterName

public java.lang.String getFilterName()
Specified by:
getFilterName in interface FilterConfig

getInitParameter

public java.lang.String getInitParameter(java.lang.String paramName)
Specified by:
getInitParameter in interface FilterConfig

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Specified by:
getInitParameterNames in interface FilterConfig

getServletContext

public ServletContext getServletContext()
Specified by:
getServletContext in interface FilterConfig

getFilter

public Filter getFilter()
                 throws ServletException
Implements the first-time-init of an instance, and wraps it in a dispatcher.

Throws:
ServletException

destroy

public void destroy()
Called when it's time for the container to shut this servlet down.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isUnavailable

public boolean isUnavailable()

setUnavailable

protected void setUnavailable()

execute

public void execute(ServletRequest request,
                    ServletResponse response,
                    FilterChain chain)
             throws ServletException,
                    java.io.IOException
Throws:
ServletException
java.io.IOException


Copyright © 2013. All Rights Reserved.