@Provider @Produces(value={"application/xml","text/xml","application/json","application/x-javascript"}) public class CommandModelStaxProvider extends AbstractStaxProvider<CommandModel>
CommandModel
into XML and JSON representation.desiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaTypes, uriInfo
Constructor and Description |
---|
CommandModelStaxProvider() |
Modifier and Type | Method and Description |
---|---|
protected void |
writeContentToStream(CommandModel proxy,
StreamWriter wr)
Marshalling implementation here.
|
getContent, isGivenTypeWritable, writeTo
canShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteable
protected void writeContentToStream(CommandModel proxy, StreamWriter wr) throws Exception
AbstractStaxProvider
writeContentToStream
in class AbstractStaxProvider<CommandModel>
proxy
- object to marshalwr
- STaX for marshalingXMLStreamException
IOException
Exception
Copyright © 2019. All rights reserved.