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>>
public class FilterInfo extends WhiteboardServiceInfo<jakarta.servlet.Filter>
Provides registration information for aFilter, and is used to programmatically registerFilters.This class only provides information used at registration time, and as such differs slightly from
DTOs like,FilterDTO.
-
-
Constructor Summary
Constructors Constructor Description FilterInfo(org.osgi.framework.ServiceReference<jakarta.servlet.Filter> ref)new filter info
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetClassName(@NotNull jakarta.servlet.Filter filter)Get the class name of the filterjakarta.servlet.DispatcherType[]getDispatcher()Map<String,String>getInitParameters()Returns an immutable map of the init parameters.StringgetName()String[]getPatterns()String[]getRegexs()String[]getServletNames()@NotNull StringgetType()Get the type represented by this infobooleanisAsyncSupported()booleanisValid()-
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
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
- Overrides:
isValidin classWhiteboardServiceInfo<jakarta.servlet.Filter>
-
getName
public String getName()
-
getPatterns
public String[] getPatterns()
-
getServletNames
public String[] getServletNames()
-
getRegexs
public String[] getRegexs()
-
isAsyncSupported
public boolean isAsyncSupported()
-
getDispatcher
public jakarta.servlet.DispatcherType[] getDispatcher()
-
getInitParameters
public Map<String,String> getInitParameters()
Returns an immutable map of the init parameters.
-
getType
@NotNull public @NotNull String getType()
Description copied from class:AbstractInfoGet the type represented by this info- Specified by:
getTypein classAbstractInfo<jakarta.servlet.Filter>- Returns:
- The type
-
getClassName
@NotNull public @NotNull String getClassName(@NotNull @NotNull jakarta.servlet.Filter filter)
Get the class name of the filter- Parameters:
filter- The filter- Returns:
- The class name
-
-