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 Filter
s.
This class only provides information used at registration time, and as such differs slightly from DTO
s like, FilterDTO
.
-
Constructor Summary
ConstructorsConstructorDescriptionFilterInfo
(org.osgi.framework.ServiceReference<jakarta.servlet.Filter> ref) new filter info -
Method Summary
Modifier and TypeMethodDescriptiongetClassName
(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[]
getType()
Get the type represented by this infoboolean
boolean
isSame
(AbstractInfo<jakarta.servlet.Filter> other) Compare two info objectsboolean
isValid()
Methods inherited from class org.apache.felix.http.base.internal.runtime.WhiteboardServiceInfo
getContextSelection, getContextSelectionFilter
Methods 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:
isValid
in 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. -
getType
Description copied from class:AbstractInfo
Get the type represented by this info- Specified by:
getType
in 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:AbstractInfo
Compare two info objects- Overrides:
isSame
in classWhiteboardServiceInfo<jakarta.servlet.Filter>
-