@Provider
@Produces(value={"application/json","application/x-javascript"})
public class ActionReportJsonProvider
extends BaseProvider<ActionReporter>
desiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaTypes, uriInfo| Constructor and Description |
|---|
ActionReportJsonProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
decodeEol(String str) |
String |
getContent(ActionReporter ar) |
protected org.codehaus.jettison.json.JSONObject |
getExtraProperties(org.codehaus.jettison.json.JSONObject object,
Properties props) |
protected <T> T |
getFieldValue(ActionReporter ar,
String name,
T type) |
protected boolean |
isGivenTypeWritable(Class<?> type,
Type genericType)
Overwrite this if you need different test of type compatibility.
|
protected org.codehaus.jettison.json.JSONArray |
processChildren(List<ActionReport.MessagePart> parts) |
protected org.codehaus.jettison.json.JSONObject |
processReport(ActionReporter ar) |
protected org.codehaus.jettison.json.JSONArray |
processSubReports(List<ActionReporter> subReports) |
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getFormattingIndentLevel, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable, writeToprotected boolean isGivenTypeWritable(Class<?> type, Type genericType)
BaseProviderisGivenTypeWritable in class BaseProvider<ActionReporter>public String getContent(ActionReporter ar)
getContent in class BaseProvider<ActionReporter>protected org.codehaus.jettison.json.JSONObject processReport(ActionReporter ar) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray processChildren(List<ActionReport.MessagePart> parts) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONArray processSubReports(List<ActionReporter> subReports) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected org.codehaus.jettison.json.JSONObject getExtraProperties(org.codehaus.jettison.json.JSONObject object,
Properties props)
throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONExceptionprotected <T> T getFieldValue(ActionReporter ar, String name, T type)
Copyright © 2017. All rights reserved.