public abstract class ResourceHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected MBeanServerDelegate |
delegate |
Constructor and Description |
---|
ResourceHandler(MBeanServerDelegate delegate)
Constructs the
ResourceHandler . |
Modifier and Type | Method and Description |
---|---|
javax.json.JsonObject |
getResource()
Returns a
JsonObject containing the response to the request given
to the implementing class. |
protected javax.json.JsonObject |
getTraceObject(Exception exception)
Gets the JsonObject containing information about the exception passed
|
protected void |
setStatus(javax.ws.rs.core.Response.Status status) |
protected final MBeanServerDelegate delegate
public ResourceHandler(MBeanServerDelegate delegate)
ResourceHandler
.delegate
- The MBeanServerDelegate
to get information from.public javax.json.JsonObject getResource()
JsonObject
containing the response to the request given
to the implementing class.
The response is made up of a request object and a value object.
In some cases the value object is removed in the case of an exception and
replaced with an error object.JsonObject
containing the response to the request.protected void setStatus(javax.ws.rs.core.Response.Status status)
protected javax.json.JsonObject getTraceObject(Exception exception) throws javax.json.JsonException
javax.json.JsonException
Copyright © 2020. All rights reserved.