Packages

object Marshaller

Source
Marshaller.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Marshaller
  2. AnyRef
  3. 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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. implicit def asScalaEntityMarshaller[T](m: Marshaller[T, RequestEntity]): scaladsl.marshalling.Marshaller[T, RequestEntity]
  6. implicit def asScalaToResponseMarshaller[T](m: Marshaller[T, HttpResponse]): ToResponseMarshaller[T]
  7. def byteArrayToEntity: Marshaller[Array[Byte], RequestEntity]
  8. def byteStringMarshaller(t: ContentType): Marshaller[ByteString, RequestEntity]
  9. def byteStringToEntity: Marshaller[ByteString, RequestEntity]
  10. def charArrayToEntity: Marshaller[Array[Char], RequestEntity]
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def downcast[A, B1, B2 <: B1](m: Marshaller[A, B2], target: Class[B1]): Marshaller[A, B1]

    Safe downcasting of the output type of the marshaller to a superclass.

    Safe downcasting of the output type of the marshaller to a superclass.

    Marshaller is covariant in B, i.e. if B2 is a subclass of B1, then Marshaller[X,B2] is OK to use where Marshaller[X,B1] is expected.

  13. def downcast[A, B1, B2 <: B1](m: Marshaller[A, B2]): Marshaller[A, B1]

    Safe downcasting of the output type of the marshaller to a superclass.

    Safe downcasting of the output type of the marshaller to a superclass.

    Marshaller is covariant in B, i.e. if B2 is a subclass of B1, then Marshaller[X,B2] is OK to use where Marshaller[X,B1] is expected.

  14. def entityToOKResponse[A](headers: Iterable[HttpHeader], m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
  15. def entityToOKResponse[A](m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
  16. def entityToResponse[A](status: StatusCode, headers: Iterable[HttpHeader], m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
  17. def entityToResponse[A, R <: RequestEntity](status: StatusCode, m: Marshaller[A, R]): Marshaller[A, HttpResponse]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. def formDataToEntity: Marshaller[FormData, RequestEntity]
  22. def fromScala[A, B](scalaMarshaller: scaladsl.marshalling.Marshaller[A, B]): Marshaller[A, B]
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def oneOf[A, B](m1: Marshaller[A, B], m2: Marshaller[A, B], m3: Marshaller[A, B], m4: Marshaller[A, B], m5: Marshaller[A, B]): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

    Please note that all marshallers will actually be invoked in order to get the Marshalling object out of them, and later decide which of the marshallings should be returned. This is by-design, however in ticket as discussed in ticket https://github.com/apache/incubator-pekko-http/issues/243 it MAY be changed in later versions of Pekko HTTP.

  30. def oneOf[A, B](m1: Marshaller[A, B], m2: Marshaller[A, B], m3: Marshaller[A, B], m4: Marshaller[A, B]): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

    Please note that all marshallers will actually be invoked in order to get the Marshalling object out of them, and later decide which of the marshallings should be returned. This is by-design, however in ticket as discussed in ticket https://github.com/apache/incubator-pekko-http/issues/243 it MAY be changed in later versions of Pekko HTTP.

  31. def oneOf[A, B](m1: Marshaller[A, B], m2: Marshaller[A, B], m3: Marshaller[A, B]): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

    Please note that all marshallers will actually be invoked in order to get the Marshalling object out of them, and later decide which of the marshallings should be returned. This is by-design, however in ticket as discussed in ticket https://github.com/apache/incubator-pekko-http/issues/243 it MAY be changed in later versions of Pekko HTTP.

  32. def oneOf[A, B](m1: Marshaller[A, B], m2: Marshaller[A, B]): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

    Please note that all marshallers will actually be invoked in order to get the Marshalling object out of them, and later decide which of the marshallings should be returned. This is by-design, however in ticket as discussed in ticket https://github.com/apache/incubator-pekko-http/issues/243 it MAY be changed in later versions of Pekko HTTP.

  33. def oneOf[A, B](ms: Marshaller[A, B]*): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

    Please note that all passed in marshallers will actually be invoked in order to get the Marshalling object out of them, and later decide which of the marshallings should be returned. This is by-design, however in ticket as discussed in ticket https://github.com/apache/incubator-pekko-http/issues/243 it MAY be changed in later versions of Pekko HTTP.

  34. def opaque[A, B](f: Function[A, B]): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to non-negotiable content from the given function.

  35. def optionMarshaller[A](m: Marshaller[A, RequestEntity]): Marshaller[Optional[A], RequestEntity]

    Marshals an Optional[A] to a RequestEntity an empty optional will yield an empty entity.

  36. def stringToEntity: Marshaller[String, RequestEntity]
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toOption[T](opt: Optional[T]): Option[T]
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. def withFixedContentType[A, B](contentType: ContentType, f: Function[A, B]): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to content with a fixed charset from the given function.

  44. def withOpenCharset[A, B](mediaType: WithOpenCharset, f: BiFunction[A, HttpCharset, B]): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to content with a negotiable charset from the given function.

  45. def wrapEntity[A, C, E <: RequestEntity](f: Function[C, A], m: Marshaller[A, E], mediaType: MediaType): Marshaller[C, RequestEntity]
  46. def wrapEntity[A, C](f: BiFunction[ExecutionContext, C, A], m: Marshaller[A, RequestEntity], mediaType: MediaType): Marshaller[C, RequestEntity]

Inherited from AnyRef

Inherited from Any

Ungrouped