Class ServletHandler

java.lang.Object
org.apache.felix.http.base.internal.handler.ServletHandler
All Implemented Interfaces:
Comparable<ServletHandler>
Direct Known Subclasses:
HttpServiceServletHandler, WhiteboardServletHandler

public abstract class ServletHandler extends Object implements Comparable<ServletHandler>
The servlet handler handles the initialization and destruction of a servlet.
  • Field Details

    • useCount

      protected volatile int useCount
  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(ServletHandler other)
      Specified by:
      compareTo in interface Comparable<ServletHandler>
    • getContextServiceId

      public long getContextServiceId()
    • getContext

      public ExtServletContext 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.ServletException
      IOException
    • getServletInfo

      public ServletInfo getServletInfo()
    • getName

      public String getName()
    • init

      public int init()
      Initialize the object
      Returns:
      {code -1} on success, a failure reason according to DTOConstants otherwise.
    • destroy

      public boolean destroy()
    • dispose

      public boolean dispose()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getMultipartConfig

      public MultipartConfig getMultipartConfig()
    • getMultipartSecurityContext

      public org.osgi.framework.Bundle getMultipartSecurityContext()