public class MBeanAttributeReadHandler extends ReadHandler
requesttype
delegate
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 |
---|---|
javax.json.JsonObject |
getRequestObject()
Returns a
JsonObject that contains values relating to the request. |
javax.json.JsonValue |
getValueObject()
Returns an
JsonValue that contains values relating to the target of
the request. |
getResource, getTraceObject, setStatus
public 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 javax.json.JsonObject getRequestObject()
ResourceHandler
JsonObject
that contains values relating to the request.JsonObject
containing the value(s) relating to the request..public javax.json.JsonValue getValueObject() throws javax.json.JsonException
ResourceHandler
JsonValue
that contains values relating to the target of
the request.
Typically this is a primitive type or a JsonObject.JsonValue
containing the value(s) relating to the request target.javax.json.JsonException
Copyright © 2020. All rights reserved.