org.apache.wicket.protocol.http.servlet
Class FilterFactoryManager

java.lang.Object
  extended by org.apache.wicket.protocol.http.servlet.FilterFactoryManager
All Implemented Interfaces:
Iterable<AbstractRequestWrapperFactory>

public class FilterFactoryManager
extends Object
implements Iterable<AbstractRequestWrapperFactory>

A very simple manager for web filter (web filter factories to be exact).

Author:
Juergen Donnerstag

Constructor Summary
FilterFactoryManager()
          Construct.
 
Method Summary
 FilterFactoryManager add(AbstractRequestWrapperFactory wrapperFactory)
          Add a filter factory
 FilterFactoryManager addSecuredRemoteAddressRequestWrapperFactory(javax.servlet.FilterConfig config)
          Add a Secure remote address web filter factory
 FilterFactoryManager addXForwardedRequestWrapperFactory(javax.servlet.FilterConfig config)
          Add a X-Forwarded web filter factory
 Iterator<AbstractRequestWrapperFactory> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterFactoryManager

public FilterFactoryManager()
Construct.

Method Detail

add

public final FilterFactoryManager add(AbstractRequestWrapperFactory wrapperFactory)
Add a filter factory

Parameters:
wrapperFactory -
Returns:
this

addXForwardedRequestWrapperFactory

public final FilterFactoryManager addXForwardedRequestWrapperFactory(javax.servlet.FilterConfig config)
Add a X-Forwarded web filter factory

Parameters:
config - If null, WebApplication.get().getWicketFilter().getFilterConfig() will be called to retrieve the config.
Returns:
this

addSecuredRemoteAddressRequestWrapperFactory

public final FilterFactoryManager addSecuredRemoteAddressRequestWrapperFactory(javax.servlet.FilterConfig config)
Add a Secure remote address web filter factory

Parameters:
config - If null, WebApplication.get().getWicketFilter().getFilterConfig() will be called to retrieve the config.
Returns:
this

iterator

public Iterator<AbstractRequestWrapperFactory> iterator()
Specified by:
iterator in interface Iterable<AbstractRequestWrapperFactory>
See Also:
Iterable.iterator()


Copyright © 2006–2014 Apache Software Foundation. All rights reserved.