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 StringgetContent(ActionReporter ar)protected XmlMapgetExtraProperties(XmlObject object, Properties props)protected XmlArraygetXml(Collection c)protected ObjectgetXml(Map map)protected ObjectgetXmlObject(Object object)protected booleanisGivenTypeWritable(Class<?> type, Type genericType)Overwrite this if you need different test of type compatibility.protected XmlArrayprocessChildren(List<ActionReport.MessagePart> parts)protected XmlObjectprocessReport(ActionReporter ar)protected XmlArrayprocessSubReports(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:
getContentin classBaseProvider<ActionReporter>
-
isGivenTypeWritable
protected boolean isGivenTypeWritable(Class<?> type, Type genericType)
Description copied from class:BaseProviderOverwrite this if you need different test of type compatibility. Used from isWritable method.- Overrides:
isGivenTypeWritablein 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)
-
-