Class CommandModelStaxProvider
- java.lang.Object
-
- org.glassfish.admin.rest.provider.BaseProvider<T>
-
- org.glassfish.admin.rest.provider.AbstractStaxProvider<CommandModel>
-
- org.glassfish.admin.rest.provider.CommandModelStaxProvider
-
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<CommandModel>
@Provider @Produces({"application/xml","text/xml","application/json","application/x-javascript"}) public class CommandModelStaxProvider extends AbstractStaxProvider<CommandModel>
MarshalsCommandModel
into XML and JSON representation.- Author:
- 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 CommandModelStaxProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeContentToStream(CommandModel proxy, StreamWriter wr)
Marshalling implementation here.-
Methods inherited from class org.glassfish.admin.rest.provider.AbstractStaxProvider
getContent, isGivenTypeWritable, writeTo
-
Methods inherited from class org.glassfish.admin.rest.provider.BaseProvider
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable
-
-
-
-
Method Detail
-
writeContentToStream
protected void writeContentToStream(CommandModel proxy, StreamWriter wr) throws Exception
Description copied from class:AbstractStaxProvider
Marshalling implementation here.- Specified by:
writeContentToStream
in classAbstractStaxProvider<CommandModel>
- Parameters:
proxy
- object to marshalwr
- STaX for marshaling- Throws:
XMLStreamException
IOException
Exception
-
-