Class JolokiaConfiguredAgentServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class JolokiaConfiguredAgentServlet
    extends org.jolokia.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:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean containsEnum​(java.lang.String test)  
      void init​(javax.servlet.ServletConfig pServletConfig)  
      • Methods inherited from class org.jolokia.http.AgentServlet

        createLogHandler, createRestrictor, destroy, doGet, doOptions, doPost, getLogHandler
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.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 Detail

      • JolokiaConfiguredAgentServlet

        public JolokiaConfiguredAgentServlet()
    • Method Detail

      • init

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

        public static boolean containsEnum​(java.lang.String test)