Class OsgiAgentServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.jolokia.server.core.http.AgentServlet
org.jolokia.server.core.osgi.OsgiAgentServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class OsgiAgentServlet extends AgentServlet
Extended here for the sole purpose of exporting this servlet to the outside in order that it can be instantiated from another bundle. This service also tracks the availability of a log service in order redirect the servlet logging to the log service (if available). Otherwise it uses the servlet's logging facility as fallback.
Since:
10.02.11
Author:
roland
See Also:
  • Constructor Details

    • OsgiAgentServlet

      public OsgiAgentServlet()
      Constructor with an empty context
    • OsgiAgentServlet

      public OsgiAgentServlet(org.osgi.framework.BundleContext pContext)
      Constructor which associates this servlet with a bundle context
      Parameters:
      pContext - bundle context to associate with
    • OsgiAgentServlet

      public OsgiAgentServlet(org.osgi.framework.BundleContext pContext, Restrictor pRestrictor)
      Constructor with a bundle context and a given restrictor
      Parameters:
      pContext - associated bundle context
      pRestrictor - restrictor to use or null if the default lookup mechanism should be used
  • Method Details