Class ServletHandler
java.lang.Object
org.apache.felix.http.base.internal.handler.ServletHandler
- All Implemented Interfaces:
Comparable<ServletHandler>
- Direct Known Subclasses:
HttpServiceServletHandler,WhiteboardServletHandler
The servlet handler handles the initialization and destruction of
a servlet.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServletHandler(long contextServiceId, ExtServletContext context, ServletInfo servletInfo) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ServletHandler other) booleandestroy()booleandispose()booleanlongorg.osgi.framework.BundlegetName()jakarta.servlet.Servletvoidhandle(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) inthashCode()intinit()Initialize the objectprotected voidsetServlet(jakarta.servlet.Servlet s)
-
Field Details
-
useCount
protected volatile int useCount
-
-
Constructor Details
-
ServletHandler
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<ServletHandler>
-
getContextServiceId
public long getContextServiceId() -
getContext
-
getServlet
public jakarta.servlet.Servlet getServlet() -
setServlet
protected void setServlet(jakarta.servlet.Servlet s) -
handle
public void handle(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse res) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletExceptionIOException
-
getServletInfo
-
getName
-
init
public int init()Initialize the object- Returns:
- {code -1} on success, a failure reason according to
DTOConstantsotherwise.
-
destroy
public boolean destroy() -
dispose
public boolean dispose() -
hashCode
public int hashCode() -
equals
-
getMultipartConfig
-
getMultipartSecurityContext
public org.osgi.framework.Bundle getMultipartSecurityContext()
-