org.glassfish.admin.rest.provider
Class ActionReportResultJsonProvider

java.lang.Object
  extended by org.glassfish.admin.rest.provider.BaseProvider<ActionReportResult>
      extended by 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

Field Summary
 
Fields inherited from class org.glassfish.admin.rest.provider.BaseProvider
desiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaType, uriInfo
 
Constructor Summary
ActionReportResultJsonProvider()
           
 
Method Summary
 java.lang.String getContent(ActionReportResult proxy)
           
protected  org.codehaus.jettison.json.JSONObject getExtraProperties(org.codehaus.jettison.json.JSONObject object, java.util.Properties props)
           
protected
<T> T
getFieldValue(ActionReporter ar, java.lang.String name, T type)
           
protected  java.lang.Object getJsonObject(java.lang.Object object)
           
protected  org.codehaus.jettison.json.JSONArray processChildren(java.util.List<ActionReport.MessagePart> parts)
           
protected  org.codehaus.jettison.json.JSONArray processCollection(java.util.Collection c)
           
protected  org.codehaus.jettison.json.JSONObject processMap(java.util.Map map)
           
protected  org.codehaus.jettison.json.JSONObject processReport(ActionReporter ar)
           
protected  org.codehaus.jettison.json.JSONArray processSubReports(java.util.List<ActionReporter> subReports)
           
 
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
 

Constructor Detail

ActionReportResultJsonProvider

public ActionReportResultJsonProvider()
Method Detail

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.