public class JolokiaServlet extends AgentServlet
Constructor and Description |
---|
JolokiaServlet()
Constructor with an empty context
|
JolokiaServlet(org.osgi.framework.BundleContext pContext)
Constructor which associates this servlet with a bundle context
|
JolokiaServlet(org.osgi.framework.BundleContext pContext,
Restrictor pRestrictor)
Constructor with a bundle context and a given restrictor
|
Modifier and Type | Method and Description |
---|---|
protected LogHandler |
createLogHandler(javax.servlet.ServletConfig pServletConfig,
boolean pDebug)
Create a log handler which tracks a
LogService and, if available, use the log service
for logging, in the other time uses the servlet's default logging facility |
void |
destroy() |
static org.osgi.framework.BundleContext |
getCurrentBundleContext()
Get the current bundle context.
|
void |
init(javax.servlet.ServletConfig pServletConfig)
Initialize the backend systems, the log handler and the restrictor.
|
createRestrictor, doGet, doOptions, doPost, getLogHandler
doDelete, doHead, doPut, doTrace, getLastModified, service, service
public JolokiaServlet()
public JolokiaServlet(org.osgi.framework.BundleContext pContext)
pContext
- bundle context to associate withpublic JolokiaServlet(org.osgi.framework.BundleContext pContext, Restrictor pRestrictor)
pContext
- associated bundle contextpRestrictor
- restrictor to use or null
if the default
lookup mechanism should be usedpublic void init(javax.servlet.ServletConfig pServletConfig) throws javax.servlet.ServletException
AgentServlet.createRestrictor(Configuration)
} and AgentServlet.createLogHandler(ServletConfig, boolean)
init
in interface javax.servlet.Servlet
init
in class AgentServlet
pServletConfig
- servlet configurationjavax.servlet.ServletException
protected LogHandler createLogHandler(javax.servlet.ServletConfig pServletConfig, boolean pDebug)
LogService
and, if available, use the log service
for logging, in the other time uses the servlet's default logging facilitycreateLogHandler
in class AgentServlet
pServletConfig
- servlet configurationpDebug
- public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class AgentServlet
public static org.osgi.framework.BundleContext getCurrentBundleContext()
Copyright © 2019. All rights reserved.