case class Builder extends Product with Serializable
Used to create a MessageBodyManager instance. Message body components can be registered on the builder which backs the created MessageBodyManager.
Components that specify how to parse an incoming Finagle HTTP request body into a model object MessageBodyReader and how to render a given type as a response MessageBodyWriter.
- Alphabetic
- By Inheritance
- Builder
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add[Component <: MessageBodyComponent]()(implicit arg0: ClassTag[Component], tt: scala.reflect.api.JavaUniverse.TypeTag[Component]): Builder
Register a MessageBodyReader or MessageBodyWriter to its parameterized type.
Register a MessageBodyReader or MessageBodyWriter to its parameterized type. E.g., a
MessageBodyReader[Foo]will register the given reader for theFootype.- Component
the MessageBodyComponent to register.
- def addExplicit[Component <: MessageBodyComponent, T]()(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[Component], arg1: scala.reflect.api.JavaUniverse.TypeTag[T]): Builder
Register a MessageBodyReader or MessageBodyWriter to an explicitly given type.
Register a MessageBodyReader or MessageBodyWriter to an explicitly given type. E.g., given a
MessageBodyReader[Car]and a type ofAuditheMessageBodyReader[Car]will be registered to theAuditype. This is useful when you want to register subtypes to a reader/writer of their parent type.- Component
the MessageBodyComponent to register. An instance of the component will be obtained from the injector.
- T
the type to associate to the registered MessageBodyComponent.
- def addWriterByAnnotation[A <: Annotation, Writer <: MessageBodyWriter[_]]()(implicit arg0: Manifest[A], arg1: Manifest[Writer]): Builder
Register a MessageBodyWriter to a given Annotation, A.
Register a MessageBodyWriter to a given Annotation, A.
- A
the Annotation type to register against the given MessageBodyWriter type.
- Writer
the MessageBodyWriter type to associate to the given Annotation. An instance of the MessageBodyWriter will be obtained from the injector.
- def addWriterByComponentType[Component <: MessageBodyComponent, Writer <: MessageBodyWriter[_]]()(implicit arg0: Manifest[Component], arg1: Manifest[Writer]): Builder
Register a MessageBodyWriter to a given MessageBodyComponent.
Register a MessageBodyWriter to a given MessageBodyComponent.
- Component
the MessageBodyComponent type to register against the given MessageBodyWriter type.
- Writer
the MessageBodyWriter type to associate to the given MessageBodyComponent. An instance of the MessageBodyWriter will be obtained from the injector
- val annotationTypeToWriter: Map[Type, MessageBodyWriter[Any]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def build(): MessageBodyManager
Create the MessageBodyManager.
- val classTypeToReader: Map[Type, MessageBodyReader[Any]]
- val classTypeToWriter: Map[Type, MessageBodyWriter[Any]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val defaultMessageBodyReader: DefaultMessageBodyReader
- val defaultMessageBodyWriter: DefaultMessageBodyWriter
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val injector: Injector
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withDefaultMessageBodyReader(reader: DefaultMessageBodyReader): Builder
Set the DefaultMessageBodyReader used when a reader is not found for a requested type.
- def withDefaultMessageBodyWriter(writer: DefaultMessageBodyWriter): Builder
Set the DefaultMessageBodyWriter used when a writer is not found for a requested type.
- def withInjector(injector: Injector): Builder
Set the injector the MessageBodyManager uses to read from the object graph.