Class FilterInfo
java.lang.Object
org.apache.felix.http.base.internal.runtime.AbstractInfo<T>
org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo<jakarta.servlet.Filter>
org.apache.felix.http.base.internal.runtime.FilterInfo
- All Implemented Interfaces:
Comparable<AbstractInfo<jakarta.servlet.Filter>>
Provides registration information for a
Filter, and is used to programmatically register Filters.
This class only provides information used at registration time, and as such differs slightly from DTOs like, FilterDTO.
-
Constructor Summary
ConstructorsConstructorDescriptionFilterInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Filter> ref) new filter info -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetClassName(@NotNull jakarta.servlet.Filter filter) Get the class name of the filterjakarta.servlet.DispatcherType[]Returns an immutable map of the init parameters.getName()String[]String[]String[]@NotNull StringgetType()Get the type represented by this infobooleanbooleanisSame(AbstractInfo<jakarta.servlet.Filter> other) Compare two info objectsbooleanisValid()Methods inherited from class org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo
getContextSelection, getContextSelectionFilterMethods inherited from class org.apache.felix.http.base.internal.runtime.AbstractInfo
compareTo, equals, getBooleanProperty, getInitParams, getRanking, getService, getServiceId, getServiceReference, getStringArrayProperty, getStringProperty, getTarget, hashCode, isEmpty, isEmpty, ungetService
-
Constructor Details
-
FilterInfo
public FilterInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Filter> ref) new filter info- Parameters:
ref- filter service reference
-
-
Method Details
-
isValid
public boolean isValid()- Overrides:
isValidin classWhiteboardServiceInfo<jakarta.servlet.Filter>
-
getName
-
getPatterns
-
getServletNames
-
getRegexs
-
isAsyncSupported
public boolean isAsyncSupported() -
getDispatcher
public jakarta.servlet.DispatcherType[] getDispatcher() -
getInitParameters
Returns an immutable map of the init parameters.- Returns:
- The init parameters
-
getType
Description copied from class:AbstractInfoGet the type represented by this info- Specified by:
getTypein classAbstractInfo<jakarta.servlet.Filter>- Returns:
- The type
-
getClassName
Get the class name of the filter- Parameters:
filter- The filter- Returns:
- The class name
-
isSame
Description copied from class:AbstractInfoCompare two info objects- Overrides:
isSamein classWhiteboardServiceInfo<jakarta.servlet.Filter>- Parameters:
other- The other info object- Returns:
trueif the objects are the same
-