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 TypeMethodDescriptionintcompareTo(FilterHandler other) booleandestroy()booleandispose()booleanlongjakarta.servlet.FiltergetName()voidhandle(@NotNull jakarta.servlet.ServletRequest req, @NotNull jakarta.servlet.ServletResponse res, @NotNull jakarta.servlet.FilterChain chain) inthashCode()intinit()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:
compareToin 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
DTOConstantsotherwise.
-
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.ServletExceptionIOException
-
destroy
public boolean destroy() -
dispose
public boolean dispose() -
hashCode
public int hashCode() -
equals
-