Packages

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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 the Foo type.

    Component

    the MessageBodyComponent to register.

  5. 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 of Audi the MessageBodyReader[Car] will be registered to the Audi type. 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.

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

  7. def addWriterByComponentType[Component <: MessageBodyComponent, Writer <: MessageBodyWriter[_]]()(implicit arg0: Manifest[Component], arg1: Manifest[Writer]): Builder

    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

  8. val annotationTypeToWriter: Map[Type, MessageBodyWriter[Any]]
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def build(): MessageBodyManager

    Create the MessageBodyManager.

  11. val classTypeToReader: Map[Type, MessageBodyReader[Any]]
  12. val classTypeToWriter: Map[Type, MessageBodyWriter[Any]]
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. val defaultMessageBodyReader: DefaultMessageBodyReader
  15. val defaultMessageBodyWriter: DefaultMessageBodyWriter
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. val injector: Injector
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. def withDefaultMessageBodyReader(reader: DefaultMessageBodyReader): Builder

    Set the DefaultMessageBodyReader used when a reader is not found for a requested type.

  30. def withDefaultMessageBodyWriter(writer: DefaultMessageBodyWriter): Builder

    Set the DefaultMessageBodyWriter used when a writer is not found for a requested type.

  31. def withInjector(injector: Injector): Builder

    Set the injector the MessageBodyManager uses to read from the object graph.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped