Class FilterHandler
java.lang.Object
org.apache.felix.http.base.internal.handler.FilterHandler
- All Implemented Interfaces:
Comparable<FilterHandler>
The filter handler handles the initialization and destruction of filter
objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilterHandler
(long contextServiceId, ExtServletContext context, FilterInfo filterInfo, org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FilterHandler other) boolean
destroy()
boolean
dispose()
boolean
long
jakarta.servlet.Filter
getName()
void
handle
(@NotNull jakarta.servlet.ServletRequest req, @NotNull jakarta.servlet.ServletResponse res, @NotNull jakarta.servlet.FilterChain chain) int
hashCode()
int
init()
Initialize the object
-
Field Details
-
useCount
protected volatile int useCount
-
-
Constructor Details
-
FilterHandler
public FilterHandler(long contextServiceId, ExtServletContext context, FilterInfo filterInfo, org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FilterHandler>
-
getContextServiceId
public long getContextServiceId() -
getContext
-
getFilter
public jakarta.servlet.Filter getFilter() -
getFilterInfo
-
getName
-
init
public int init()Initialize the object- Returns:
- {code -1} on success, a failure reason according to
DTOConstants
otherwise.
-
handle
public void handle(@NotNull @NotNull jakarta.servlet.ServletRequest req, @NotNull @NotNull jakarta.servlet.ServletResponse res, @NotNull @NotNull jakarta.servlet.FilterChain chain) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-
destroy
public boolean destroy() -
dispose
public boolean dispose() -
hashCode
public int hashCode() -
equals
-