Object/Class

akka.http.javadsl.marshalling

Marshaller

Related Docs: class Marshaller | package marshalling

Permalink

object Marshaller

Source
Marshaller.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Marshaller
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. implicit def asScalaEntityMarshaller[T](m: Marshaller[T, RequestEntity]): scaladsl.marshalling.Marshaller[T, RequestEntity]

    Permalink
  6. implicit def asScalaToResponseMarshaller[T](m: Marshaller[T, HttpResponse]): ToResponseMarshaller[T]

    Permalink
  7. def byteArrayToEntity: Marshaller[Array[Byte], RequestEntity]

    Permalink
  8. def byteStringMarshaller(t: ContentType): Marshaller[ByteString, RequestEntity]

    Permalink
  9. def byteStringToEntity: Marshaller[ByteString, RequestEntity]

    Permalink
  10. def charArrayToEntity: Marshaller[Array[Char], RequestEntity]

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def downcast[A, B1, B2 <: B1](m: Marshaller[A, B2], target: Class[B1]): Marshaller[A, B1]

    Permalink

    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]

    Permalink

    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]

    Permalink
  15. def entityToOKResponse[A](m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]

    Permalink
  16. def entityToResponse[A](status: StatusCode, headers: Iterable[HttpHeader], m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]

    Permalink
  17. def entityToResponse[A, R <: RequestEntity](status: StatusCode, m: Marshaller[A, R]): Marshaller[A, HttpResponse]

    Permalink
  18. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def formDataToEntity: Marshaller[FormData, RequestEntity]

    Permalink
  22. def fromScala[A, B](scalaMarshaller: scaladsl.marshalling.Marshaller[A, B]): Marshaller[A, B]

    Permalink
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  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]

    Permalink

    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/akka/akka-http/issues/243 it MAY be changed in later versions of Akka 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]

    Permalink

    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/akka/akka-http/issues/243 it MAY be changed in later versions of Akka HTTP.

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

    Permalink

    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/akka/akka-http/issues/243 it MAY be changed in later versions of Akka HTTP.

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

    Permalink

    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/akka/akka-http/issues/243 it MAY be changed in later versions of Akka HTTP.

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

    Permalink

    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/akka/akka-http/issues/243 it MAY be changed in later versions of Akka HTTP.

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

    Permalink

    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]

    Permalink

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

  36. def stringToEntity: Marshaller[String, RequestEntity]

    Permalink
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toOption[T](opt: Optional[T]): Option[T]

    Permalink
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withFixedContentType[A, B](contentType: ContentType, f: Function[A, B]): Marshaller[A, B]

    Permalink

    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]

    Permalink

    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]

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

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped