object Marshaller
- Source
- Marshaller.scala
- Alphabetic
- By Inheritance
- Marshaller
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- implicit def asScalaEntityMarshaller[T](m: Marshaller[T, RequestEntity]): scaladsl.marshalling.Marshaller[T, RequestEntity]
- implicit def asScalaToResponseMarshaller[T](m: Marshaller[T, HttpResponse]): ToResponseMarshaller[T]
- def byteArrayToEntity: Marshaller[Array[Byte], RequestEntity]
- def byteStringMarshaller(t: ContentType): Marshaller[ByteString, RequestEntity]
- def byteStringToEntity: Marshaller[ByteString, RequestEntity]
- def charArrayToEntity: Marshaller[Array[Char], RequestEntity]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- 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.
- def entityToOKResponse[A](headers: Iterable[HttpHeader], m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
- def entityToOKResponse[A](m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
- def entityToResponse[A](status: StatusCode, headers: Iterable[HttpHeader], m: Marshaller[A, _ <: RequestEntity]): Marshaller[A, HttpResponse]
- def entityToResponse[A, R <: RequestEntity](status: StatusCode, m: Marshaller[A, R]): Marshaller[A, HttpResponse]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formDataToEntity: Marshaller[FormData, RequestEntity]
- def fromScala[A, B](scalaMarshaller: scaladsl.marshalling.Marshaller[A, B]): Marshaller[A, B]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- def stringToEntity: Marshaller[String, RequestEntity]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toOption[T](opt: Optional[T]): Option[T]
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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 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.
- 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.
- def wrapEntity[A, C, E <: RequestEntity](f: Function[C, A], m: Marshaller[A, E], mediaType: MediaType): Marshaller[C, RequestEntity]
- def wrapEntity[A, C](f: BiFunction[ExecutionContext, C, A], m: Marshaller[A, RequestEntity], mediaType: MediaType): Marshaller[C, RequestEntity]