Class PlainTextParser

All Implemented Interfaces:
PlainTextMetaProvider, RecordReadable

Parsers HTTP plain text request bodies into Group 5 POJOs.

See POJO Categories.

Media types

Handles Accept types: text/plain

Produces Content-Type types: text/plain

Description

Essentially just converts plain text to POJOs via static fromString() or valueOf(), or through constructors that take a single string argument.

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

Notes:

  • This class is thread safe and reusable.