Package io.hawt.web.servlets
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsEnum(String test) voidinit(jakarta.servlet.ServletConfig pServletConfig) Methods inherited from class org.jolokia.server.core.http.AgentServlet
createConfig, createLogHandler, createRestrictor, destroy, doGet, doOptions, doPost, getServerDetectorLookup, initServicesMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
JolokiaConfiguredAgentServlet
public JolokiaConfiguredAgentServlet()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletConfig pServletConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classorg.jolokia.server.core.http.AgentServlet- Throws:
jakarta.servlet.ServletException
-
containsEnum
-