@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)
Returns the content of the
ActionReporter in Json format as a String. |
protected javax.json.JsonObject |
getExtraProperties(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 javax.json.JsonArray |
processChildren(List<ActionReport.MessagePart> parts) |
protected javax.json.JsonObject |
processReport(ActionReporter ar)
Converts an ActionReport into a JsonObject
|
protected javax.json.JsonArray |
processSubReports(List<ActionReporter> subReports) |
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable, writeToprotected boolean isGivenTypeWritable(Class<?> type, Type genericType)
BaseProviderisGivenTypeWritable in class BaseProvider<ActionReporter>public String getContent(ActionReporter ar)
ActionReporter in Json format as a String.
This is equivalent to processReport(ar).toString()
getContent in class BaseProvider<ActionReporter>ar - protected javax.json.JsonObject processReport(ActionReporter ar) throws javax.json.JsonException
ar - javax.json.JsonExceptionprotected javax.json.JsonArray processChildren(List<ActionReport.MessagePart> parts) throws javax.json.JsonException
javax.json.JsonExceptionprotected javax.json.JsonArray processSubReports(List<ActionReporter> subReports) throws javax.json.JsonException
javax.json.JsonExceptionprotected javax.json.JsonObject getExtraProperties(Properties props) throws javax.json.JsonException
javax.json.JsonExceptionprotected <T> T getFieldValue(ActionReporter ar, String name, T type)
Copyright © 2019. All rights reserved.