@Provider
@Produces(value={"application/xml","text/xml","application/json","application/x-javascript"})
public class CommandModelStaxProvider
extends AbstractStaxProvider<CommandModel>
CommandModel into XML and JSON representation.AbstractStaxProvider.PrePostFixedWriterdesiredType, habitat, HEADER_DEBUG, JSONP_CALLBACK, requestHeaders, supportedMediaTypes, uriInfo| Constructor and Description |
|---|
CommandModelStaxProvider() |
| Modifier and Type | Method and Description |
|---|---|
static String |
simplifiedTypeOf(CommandModel.ParamModel p) |
protected void |
writeContentToStream(CommandModel proxy,
XMLStreamWriter wr)
Marshalling implementation here.
|
getContent, getJsonWriter, getWriter, getXmlWriter, isGivenTypeWritable, writeTocanShowDeprecatedItems, canShowHiddenCommands, getCallBackJSONP, getFormattingIndentLevel, getResourceLinks, getResourceLinks, getSize, getXmlCommandLinks, isDebug, isWriteableprotected void writeContentToStream(CommandModel proxy, XMLStreamWriter wr) throws XMLStreamException
AbstractStaxProviderwriteContentToStream in class AbstractStaxProvider<CommandModel>proxy - object to marshalwr - STaX for marshalingXMLStreamExceptionpublic static String simplifiedTypeOf(CommandModel.ParamModel p)
Copyright © 2017. All rights reserved.