@Immutable public class ServletFilter<T extends javax.servlet.Filter> extends Object
DispatcherTypes.
This class can either be used to wrap a concrete instance of a filter
or a class which is instantiated by HiveMQ in order to provide
dependency injection to that given filter.| Constructor and Description |
|---|
ServletFilter(Class<T> filterClass,
javax.servlet.DispatcherType... dispatcherTypes)
Creates a new wrapper for a Servlet Filter class and its corresponding
dispatcher types.
|
ServletFilter(T filter,
javax.servlet.DispatcherType... dispatcherTypes)
Creates a new wrapper for a concrete Servlet Filter object and its corresponding
dispatcher types.
|
| Modifier and Type | Method and Description |
|---|---|
List<javax.servlet.DispatcherType> |
getDispatcherTypes()
Returns a immutable list of all supported Dispatcher types by that filter
|
com.google.common.base.Optional<T> |
getFilter() |
com.google.common.base.Optional<Class<T>> |
getFilterClass() |
public ServletFilter(@NotNull T filter, @NotNull javax.servlet.DispatcherType... dispatcherTypes)
DispatcherType.REQUEST is used as default dispatcher typefilter - a concrete filter instancedispatcherTypes - all supported dispatcher types by that filterNullPointerException - if the filter or the dispatcher types array is nullpublic ServletFilter(@NotNull Class<T> filterClass, @NotNull javax.servlet.DispatcherType... dispatcherTypes)
DispatcherType.REQUEST is used as default dispatcher typefilterClass - a filter class which should be instantiated with dependency injectiondispatcherTypes - all supported dispatcher types by that filterNullPointerException - if the filter or the dispatcher types array is nullpublic com.google.common.base.Optional<T> getFilter()
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.