Class ActionReportXmlProvider
- java.lang.Object
-
- org.glassfish.admin.rest.provider.BaseProvider<ActionReporter>
-
- org.glassfish.admin.rest.provider.ActionReportXmlProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<ActionReporter>
@Provider @Produces("application/xml") public class ActionReportXmlProvider extends BaseProvider<ActionReporter>
- Author:
- Ludovic Champenois, mmares
-
-
Field Summary
-
Fields inherited from class org.glassfish.admin.rest.provider.BaseProvider
desiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaTypes, uriInfo
-
-
Constructor Summary
Constructors Constructor Description ActionReportXmlProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent(ActionReporter ar)
protected XmlMap
getExtraProperties(XmlObject object, Properties props)
protected XmlArray
getXml(Collection c)
protected Object
getXml(Map map)
protected Object
getXmlObject(Object object)
protected boolean
isGivenTypeWritable(Class<?> type, Type genericType)
Overwrite this if you need different test of type compatibility.protected XmlArray
processChildren(List<ActionReport.MessagePart> parts)
protected XmlObject
processReport(ActionReporter ar)
protected XmlArray
processSubReports(List<ActionReporter> subReports)
-
Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable, writeTo
-
-
-
-
Method Detail
-
getContent
public String getContent(ActionReporter ar)
- Specified by:
getContent
in classBaseProvider<ActionReporter>
-
isGivenTypeWritable
protected boolean isGivenTypeWritable(Class<?> type, Type genericType)
Description copied from class:BaseProvider
Overwrite this if you need different test of type compatibility. Used from isWritable method.- Overrides:
isGivenTypeWritable
in classBaseProvider<ActionReporter>
-
processReport
protected XmlObject processReport(ActionReporter ar)
-
processChildren
protected XmlArray processChildren(List<ActionReport.MessagePart> parts)
-
processSubReports
protected XmlArray processSubReports(List<ActionReporter> subReports)
-
getExtraProperties
protected XmlMap getExtraProperties(XmlObject object, Properties props)
-
getXml
protected XmlArray getXml(Collection c)
-
-