Package org.jolokia.server.core.request
Class JolokiaWriteRequest
java.lang.Object
org.jolokia.server.core.request.JolokiaRequest
org.jolokia.server.core.request.JolokiaObjectNameRequest
org.jolokia.server.core.request.JolokiaWriteRequest
A JMX request for a
write operation- Since:
- 15.03.11
- Author:
- roland
-
Method Summary
Modifier and TypeMethodDescriptionName of the attribute to set the value ongetValue()Value to set for a write requestorg.json.simple.JSONObjecttoJSON()Convert this request to a JSON object, which can be used as a part of a return value.toString()booleanThe old value is returned directly, hence we do not want any path conversion on this valueMethods inherited from class org.jolokia.server.core.request.JolokiaObjectNameRequest
getInfo, getObjectName, getObjectNameAsString, getOrderedObjectName, getProviderMethods inherited from class org.jolokia.server.core.request.JolokiaRequest
getHttpMethod, getOption, getParameter, getParameterAsBool, getParameterAsInt, getPath, getPathParts, getType, getValueFaultHandler, isExclusive
-
Method Details
-
getValue
Value to set for a write request- Returns:
- the value to set
-
getAttributeName
Name of the attribute to set the value on- Returns:
- the attribute name
-
useReturnValueWithPath
public boolean useReturnValueWithPath()The old value is returned directly, hence we do not want any path conversion on this value- Overrides:
useReturnValueWithPathin classJolokiaRequest- Returns:
- false;
-
toString
-
toJSON
public org.json.simple.JSONObject toJSON()Description copied from class:JolokiaObjectNameRequestConvert this request to a JSON object, which can be used as a part of a return value.- Overrides:
toJSONin classJolokiaObjectNameRequest- Returns:
- JSON object representing this base request object
-