Class FilterHandler
- java.lang.Object
-
- org.apache.felix.http.base.internal.handler.FilterHandler
-
- All Implemented Interfaces:
Comparable<FilterHandler>
public class FilterHandler extends Object implements Comparable<FilterHandler>
The filter handler handles the initialization and destruction of filter objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected intuseCount
-
Constructor Summary
Constructors Constructor Description FilterHandler(long contextServiceId, ExtServletContext context, FilterInfo filterInfo, org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FilterHandler other)booleandestroy()booleandispose()booleanequals(Object obj)ExtServletContextgetContext()longgetContextServiceId()javax.servlet.FiltergetFilter()FilterInfogetFilterInfo()StringgetName()voidhandle(@NotNull javax.servlet.ServletRequest req, @NotNull javax.servlet.ServletResponse res, @NotNull javax.servlet.FilterChain chain)inthashCode()intinit()Initialize the object
-
-
-
Constructor Detail
-
FilterHandler
public FilterHandler(long contextServiceId, ExtServletContext context, FilterInfo filterInfo, org.osgi.framework.BundleContext bundleContext)
-
-
Method Detail
-
compareTo
public int compareTo(FilterHandler other)
- Specified by:
compareToin interfaceComparable<FilterHandler>
-
getContextServiceId
public long getContextServiceId()
-
getContext
public ExtServletContext getContext()
-
getFilter
public javax.servlet.Filter getFilter()
-
getFilterInfo
public FilterInfo getFilterInfo()
-
getName
public String 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 javax.servlet.ServletRequest req, @NotNull @NotNull javax.servlet.ServletResponse res, @NotNull @NotNull javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException- Throws:
javax.servlet.ServletExceptionIOException
-
destroy
public boolean destroy()
-
dispose
public boolean dispose()
-
-