Class FilterFactoryManager
- java.lang.Object
-
- 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 factories.- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description FilterFactoryManager()
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterFactoryManager
add(AbstractRequestWrapperFactory wrapperFactory)
Add a filter factoryFilterFactoryManager
addSecuredRemoteAddressRequestWrapperFactory(javax.servlet.FilterConfig config)
Add a Secure remote address web filter factoryFilterFactoryManager
addXForwardedRequestWrapperFactory(javax.servlet.FilterConfig config)
Add a X-Forwarded web filter factoryIterator<AbstractRequestWrapperFactory>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
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 interfaceIterable<AbstractRequestWrapperFactory>
- See Also:
Iterable.iterator()
-
-