Class XmlDocSerializer

All Implemented Interfaces:
AnnotationProvider, XmlMetaProvider
Direct Known Subclasses:

public class XmlDocSerializer extends XmlSerializer
Serializes POJOs to HTTP responses as XML.
Media types
Handles Accept types: text/xml

Produces Content-Type types: text/xml

Same as XmlSerializer, except prepends <?xml version='1.0' encoding='UTF-8'?> to the response to make it a valid XML document.
  • This class is thread safe and reusable.
See Also: