Manages registration of message body components. I.e., components that specify how to parse
an incoming Finagle HTTP request body into a model object ("message body reader") and how to
render a given type as a response ("message body writer").
A default implementation for both a reader and a writer is necessary in order to specify the
behavior to invoke when a reader or writer is not found for a requested type T. The framework
binds two default implementations: DefaultMessageBodyReader and DefaultMessageBodyWriter via
the com.twitter.finatra.http.modules.MessageBodyModule.
When the MessageBodyManager is obtained from the injector (which is configured with the framework
com.twitter.finatra.http.modules.MessageBodyModule) the framework default implementations for
the reader and writer will be provided accordingly (along with the configured server injector).
Manages registration of message body components. I.e., components that specify how to parse an incoming Finagle HTTP request body into a model object ("message body reader") and how to render a given type as a response ("message body writer").
A default implementation for both a reader and a writer is necessary in order to specify the behavior to invoke when a reader or writer is not found for a requested type
T
. The framework binds two default implementations:DefaultMessageBodyReader
andDefaultMessageBodyWriter
via the com.twitter.finatra.http.modules.MessageBodyModule.These defaults are overridable by providing a customized
MessageBodyModule
in your com.twitter.finatra.http.HttpServer by overriding the com.twitter.finatra.http.HttpServer.messageBodyModule.When the MessageBodyManager is obtained from the injector (which is configured with the framework com.twitter.finatra.http.modules.MessageBodyModule) the framework default implementations for the reader and writer will be provided accordingly (along with the configured server injector).
com.twitter.finatra.http.modules.MessageBodyModule