Class JolokiaConfiguredAgentServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.jolokia.server.core.http.AgentServlet
io.hawt.web.servlets.JolokiaConfiguredAgentServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class JolokiaConfiguredAgentServlet extends org.jolokia.server.core.http.AgentServlet
Decorator class around Jolokia native AgentServlet.

Adds support to specify Jolokia agent configurable parameters via java system properties mechanism. This allows to provide start up time customization, without the need to alter web.xml deployment descriptor.

To specify them, you need to pass the to the jvm process with "jolokia." prefix.

Ex. -Djolokia.policyLocation=file:///home/fuse/my-access.xml

The supported input configuration is described in Jolokia documentation:

https://jolokia.org/reference/html/agents.html#agent-war-init-params

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
     
    void
    init(jakarta.servlet.ServletConfig pServletConfig)
     

    Methods inherited from class org.jolokia.server.core.http.AgentServlet

    createConfig, createLogHandler, createRestrictor, destroy, doGet, doOptions, doPost, getServerDetectorLookup, initServices

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doPut, doTrace, getLastModified, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JolokiaConfiguredAgentServlet

      public JolokiaConfiguredAgentServlet()
  • Method Details

    • init

      public void init(jakarta.servlet.ServletConfig pServletConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Servlet
      Overrides:
      init in class org.jolokia.server.core.http.AgentServlet
      Throws:
      jakarta.servlet.ServletException
    • containsEnum

      public static boolean containsEnum(String test)