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 |
|---|---|
org.codehaus.jettison.json.JSONObject |
getResource()
Returns a
JSONObject containing the response to the request given
to the implementing class. |
protected org.codehaus.jettison.json.JSONObject |
getTraceObject(Exception exception) |
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 org.codehaus.jettison.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 org.codehaus.jettison.json.JSONObject getTraceObject(Exception exception) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionCopyright © 2017. All rights reserved.