Class Jetty9JmxWebHandler
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
com.j256.simplejmx.web.Jetty9JmxWebHandler
- All Implemented Interfaces:
JmxWebPublisher, org.eclipse.jetty.server.Handler, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.component.Destroyable, org.eclipse.jetty.util.component.Dumpable, org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.LifeCycle
public class Jetty9JmxWebHandler
extends org.eclipse.jetty.server.handler.AbstractHandler
implements JmxWebPublisher
Jetty 9 web handler that implements the
JmxWebPublisher functions to allow the JmxWebHandler to
display web simple JMX web pages.- Author:
- graywatson
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandlerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPINGFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the request path-info.getRequestQueryParameter(String paramName) Return the request query parameter by name.voidhandle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voidsendResponseRedirect(String location) Send a redirect to a new url.voidsetResponseContentType(String contentType) Set the response content type.voidsetResponseStatusCode(int httpStatusCode) Set the response status code.voidsetWebHandler(JmxWebHandler webHandler) Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, doError, doStart, doStop, getServer, setServerMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelfMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpableMethods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Constructor Details
-
Jetty9JmxWebHandler
public Jetty9JmxWebHandler() -
Jetty9JmxWebHandler
-
-
Method Details
-
handle
public void handle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Specified by:
handlein interfaceorg.eclipse.jetty.server.Handler- Specified by:
handlein classorg.eclipse.jetty.server.handler.AbstractHandler- Throws:
IOException
-
getRequestPathInfo
Description copied from interface:JmxWebPublisherReturn the request path-info.- Specified by:
getRequestPathInfoin interfaceJmxWebPublisher
-
getRequestQueryParameter
Description copied from interface:JmxWebPublisherReturn the request query parameter by name.- Specified by:
getRequestQueryParameterin interfaceJmxWebPublisher
-
setResponseContentType
Description copied from interface:JmxWebPublisherSet the response content type.- Specified by:
setResponseContentTypein interfaceJmxWebPublisher
-
setResponseStatusCode
public void setResponseStatusCode(int httpStatusCode) Description copied from interface:JmxWebPublisherSet the response status code.- Specified by:
setResponseStatusCodein interfaceJmxWebPublisher
-
sendResponseRedirect
Description copied from interface:JmxWebPublisherSend a redirect to a new url.- Specified by:
sendResponseRedirectin interfaceJmxWebPublisher- Throws:
IOException
-
setWebHandler
-