public class ListHandler extends JsonRequestHandler<JmxListRequest>
| Constructor and Description |
|---|
ListHandler(Restrictor pRestrictor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkForRestriction(JmxListRequest pRequest)
Check whether there is a restriction on the type to apply.
|
Object |
doHandleRequest(MBeanServerConnection server,
JmxListRequest request)
Abstract method to be subclassed by a concrete handler for performing the
request.
|
Object |
doHandleRequest(MBeanServerExecutor pServerManager,
JmxListRequest pRequest)
Default implementation fo handling a request for multiple servers at once.
|
RequestType |
getType()
The type of request which can be served by this handler
|
boolean |
handleAllServersAtOnce(JmxListRequest pRequest)
Return true since a list handler needs to merge all information
|
boolean |
useReturnValueWithPath()
Use the path for the return value by default
|
checkForModifiedSince, checkType, getRestrictor, handleRequest, handleRequestpublic ListHandler(Restrictor pRestrictor)
pRestrictor - restrictor to applypublic RequestType getType()
getType in class JsonRequestHandler<JmxListRequest>public boolean handleAllServersAtOnce(JmxListRequest pRequest)
handleAllServersAtOnce in class JsonRequestHandler<JmxListRequest>pRequest - request to decide on whether to handle all request at onceprotected void checkForRestriction(JmxListRequest pRequest)
checkForRestriction in class JsonRequestHandler<JmxListRequest>pRequest - request to checkpublic Object doHandleRequest(MBeanServerExecutor pServerManager, JmxListRequest pRequest) throws IOException, NotChangedException
true on JsonRequestHandler.handleAllServersAtOnce(JmxRequest), needs to override this method.doHandleRequest in class JsonRequestHandler<JmxListRequest>pServerManager - all MBean servers found in this JVMpRequest - the original requestIOExceptionNotChangedExceptionpublic Object doHandleRequest(MBeanServerConnection server, JmxListRequest request) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException
doHandleRequest in class JsonRequestHandler<JmxListRequest>server - server to tryrequest - request to processInstanceNotFoundExceptionAttributeNotFoundExceptionReflectionExceptionMBeanExceptionpublic boolean useReturnValueWithPath()
JsonRequestHandleruseReturnValueWithPath in class JsonRequestHandler<JmxListRequest>Copyright © 2019. All rights reserved.