Package

com.twitter.finatra.http.internal

marshalling

Permalink

package marshalling

Visibility
  1. Public
  2. All

Type Members

  1. class MessageBodyManager extends AnyRef

    Permalink

    Manages registration of message body components.

    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.

    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).

    Annotations
    @Singleton()
    See also

    com.twitter.finatra.http.modules.MessageBodyModule

Value Members

  1. object RequestInjectableValues

    Permalink
  2. package mustache

    Permalink

Ungrouped