org.glassfish.admin.rest.provider
Class ActionReportResultJsonProvider
java.lang.Object
org.glassfish.admin.rest.provider.BaseProvider<ActionReportResult>
org.glassfish.admin.rest.provider.ActionReportResultJsonProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyWriter<ActionReportResult>
@Provider
public class ActionReportResultJsonProvider
- extends BaseProvider<ActionReportResult>
- Author:
- Ludovic Champenois, Jason Lee
| Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider |
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getFormattingIndentLevel, getResourceLinks, getResourceLinks, getRestConfig, getSize, getXmlCommandLinks, isDebug, isWriteable, writeTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionReportResultJsonProvider
public ActionReportResultJsonProvider()
getContent
public java.lang.String getContent(ActionReportResult proxy)
- Specified by:
getContent in class BaseProvider<ActionReportResult>
processReport
protected org.codehaus.jettison.json.JSONObject processReport(ActionReporter ar)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
processChildren
protected org.codehaus.jettison.json.JSONArray processChildren(java.util.List<ActionReport.MessagePart> parts)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
processSubReports
protected org.codehaus.jettison.json.JSONArray processSubReports(java.util.List<ActionReporter> subReports)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getExtraProperties
protected org.codehaus.jettison.json.JSONObject getExtraProperties(org.codehaus.jettison.json.JSONObject object,
java.util.Properties props)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getJsonObject
protected java.lang.Object getJsonObject(java.lang.Object object)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
processCollection
protected org.codehaus.jettison.json.JSONArray processCollection(java.util.Collection c)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
processMap
protected org.codehaus.jettison.json.JSONObject processMap(java.util.Map map)
throws org.codehaus.jettison.json.JSONException
- Throws:
org.codehaus.jettison.json.JSONException
getFieldValue
protected <T> T getFieldValue(ActionReporter ar,
java.lang.String name,
T type)
Copyright © 2012 GlassFish Community. All Rights Reserved.