Class PlainTextSerializer

All Implemented Interfaces:
AnnotationProvider, PlainTextMetaProvider

Serializes POJOs to plain text using just the toString() method on the serialized object.
Media types
Handles Accept types: text/plain

Produces Content-Type types: text/plain

Description
Essentially converts POJOs to plain text using the toString() method.

Also serializes objects using a transform if the object class has an ObjectSwap<?,String> transform defined on it.

Notes:
  • This class is thread safe and reusable.
See Also: