public class MBeanAttributeReadHandler extends ReadHandler
requesttypedelegate| Constructor and Description |
|---|
MBeanAttributeReadHandler(MBeanServerDelegate delegate,
String mbeanname,
String attributename)
Creates an instance of MBeanAttributeReadHandler, which handles MBean
attribute read requests.
|
| Modifier and Type | Method and Description |
|---|---|
org.codehaus.jettison.json.JSONObject |
getRequestObject()
Returns a
JSONObject that contains values relating to the request. |
Object |
getValueObject()
Returns an
Object that contains values relating to the target of
the request. |
getResource, getTraceObject, setStatuspublic MBeanAttributeReadHandler(@Singleton
MBeanServerDelegate delegate,
String mbeanname,
String attributename)
delegate - The MBeanServerDelegate to get information from.mbeanname - The ObjectName of the MBean to get information from.attributename - The name of the MBean attribute to get values for.public org.codehaus.jettison.json.JSONObject getRequestObject()
ResourceHandlerJSONObject that contains values relating to the request.JSONObject containing the value(s) relating to the request..public Object getValueObject() throws org.codehaus.jettison.json.JSONException
ResourceHandlerObject that contains values relating to the target of
the request.
Typically this is a primitive type or a JSONObject.Object containing the value(s) relating to the request target.org.codehaus.jettison.json.JSONExceptionCopyright © 2017. All rights reserved.