public class WriteHandler extends JsonRequestHandler<JmxWriteRequest>
Constructor and Description |
---|
WriteHandler(Restrictor pRestrictor,
Converters pConverters)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkForRestriction(JmxWriteRequest pRequest)
Check whether there is a restriction on the type to apply.
|
Object |
doHandleRequest(MBeanServerConnection server,
JmxWriteRequest request)
Abstract method to be subclassed by a concrete handler for performing the
request.
|
RequestType |
getType()
The type of request which can be served by this handler
|
boolean |
useReturnValueWithPath()
The old value is returned directly, hence we do not want any path conversion
on this value
|
checkForModifiedSince, checkType, doHandleRequest, getRestrictor, handleAllServersAtOnce, handleRequest, handleRequest
public WriteHandler(Restrictor pRestrictor, Converters pConverters)
pRestrictor
- access restriction to applypConverters
- converters used for serializationpublic RequestType getType()
getType
in class JsonRequestHandler<JmxWriteRequest>
protected void checkForRestriction(JmxWriteRequest pRequest)
checkForRestriction
in class JsonRequestHandler<JmxWriteRequest>
pRequest
- request to checkpublic Object doHandleRequest(MBeanServerConnection server, JmxWriteRequest request) throws InstanceNotFoundException, AttributeNotFoundException, ReflectionException, MBeanException, IOException
doHandleRequest
in class JsonRequestHandler<JmxWriteRequest>
server
- server to tryrequest
- request to processInstanceNotFoundException
AttributeNotFoundException
ReflectionException
MBeanException
IOException
public boolean useReturnValueWithPath()
useReturnValueWithPath
in class JsonRequestHandler<JmxWriteRequest>
Copyright © 2017. All rights reserved.