Package io.hawt.web.servlets
Class JolokiaConfiguredAgentServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jolokia.http.AgentServlet
-
- io.hawt.web.servlets.JolokiaConfiguredAgentServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class JolokiaConfiguredAgentServlet extends org.jolokia.http.AgentServletDecorator 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
-
-
Constructor Summary
Constructors Constructor Description JolokiaConfiguredAgentServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancontainsEnum(java.lang.String test)voidinit(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
-
-
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig pServletConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classorg.jolokia.http.AgentServlet- Throws:
javax.servlet.ServletException
-
containsEnum
public static boolean containsEnum(java.lang.String test)
-
-