Unmarshaller

org.apache.pekko.http.javadsl.unmarshalling.Unmarshaller
See theUnmarshaller companion object
abstract class Unmarshaller[-A, B] extends UnmarshallerBase[A, B]

An unmarshaller transforms values of type A into type B.

Attributes

Companion
object
Source
Unmarshaller.scala
Graph
Supertypes
trait UnmarshallerBase[A, B]
class Object
trait Matchable
class Any
Known subtypes
trait Unmarshaller[A, B]

Members list

Value members

Concrete methods

def flatMap[C](f: Function[B, CompletionStage[C]]): Unmarshaller[A, C]

Attributes

Source
Unmarshaller.scala
def flatMap[C](u: Unmarshaller[_ >: B, C]): Unmarshaller[A, C]

Attributes

Source
Unmarshaller.scala
def thenApply[C](f: Function[B, C]): Unmarshaller[A, C]

Transform the result B of this unmarshaller to a C producing a marshaller that turns As into Cs

Transform the result B of this unmarshaller to a C producing a marshaller that turns As into Cs

Attributes

Returns

A new marshaller that can unmarshall instances of A into instances of C

Source
Unmarshaller.scala

Apply this Unmarshaller to the given value.

Apply this Unmarshaller to the given value.

Attributes

Source
Unmarshaller.scala
def unmarshal(value: A, mat: Materializer): CompletionStage[B]

Apply this Unmarshaller to the given value. Uses the default materializer ExecutionContext. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.

Apply this Unmarshaller to the given value. Uses the default materializer ExecutionContext. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.

Attributes

Source
Unmarshaller.scala

Apply this Unmarshaller to the given value.

Apply this Unmarshaller to the given value.

Attributes

Source
Unmarshaller.scala

Apply this Unmarshaller to the given value. Uses the default materializer ExecutionContext. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.

Apply this Unmarshaller to the given value. Uses the default materializer ExecutionContext. If you expect the marshalling to be heavy, it is suggested to provide a specialized context for those operations.

Attributes

Source
Unmarshaller.scala

Implicits

Implicits

implicit def asScala: Unmarshaller[A, B]

Attributes

Source
Unmarshaller.scala