package modules
- Alphabetic
- Public
- Protected
Type Members
- abstract class DarkTrafficFilterModule extends TwitterModule
- class HttpResponseExceptionMapper extends ExceptionMapper[HttpResponseException]
- Annotations
- @Singleton()
- class MessageBodyModule extends TwitterModule
A TwitterModule that provides default implementations for com.twitter.finatra.http.marshalling.DefaultMessageBodyReader, and com.twitter.finatra.http.marshalling.DefaultMessageBodyWriter.
A TwitterModule that provides default implementations for com.twitter.finatra.http.marshalling.DefaultMessageBodyReader, and com.twitter.finatra.http.marshalling.DefaultMessageBodyWriter.
Extend this module to override the defaults of the bound com.twitter.finatra.http.marshalling.MessageBodyManager.
Example:
import com.twitter.finatra.http.marshalling.MessageBodyManager import com.twitter.finatra.http.modules.MessageBodyModule import com.twitter.inject.Injector object CustomizedMessageBodyModule extends MessageBodyModule { override def configureMessageBodyManager(injector: Injector, builder: MessageBodyManager.Builder): MessageBodyManager.Builder = builder .withDefaultMessageBodyReader(MyDefaultReader) .withDefaultMessageBodyWriter(MyDefaultWriter) }
Value Members
- object AccessLogModule extends TwitterModule
A com.twitter.inject.TwitterModule which provides a com.twitter.finagle.filter.LogFormatter implementation.
- object HttpResponseClassifierModule extends TwitterModule
- object MessageBodyModule extends MessageBodyModule
- object MustacheModule extends TwitterModule
This TwitterModule ties together Mustache and HTTP by registering a Mustache-specific com.twitter.finatra.http.marshalling.MessageBodyWriter to the com.twitter.finatra.http.marshalling.MessageBodyManager.
This TwitterModule ties together Mustache and HTTP by registering a Mustache-specific com.twitter.finatra.http.marshalling.MessageBodyWriter to the com.twitter.finatra.http.marshalling.MessageBodyManager. The writer is keyed by both the Mustache annotation and MustacheBodyComponent com.twitter.finatra.http.marshalling.MessageBodyComponent type.