trait Unmarshaller[-A, B] extends javadsl.unmarshalling.Unmarshaller[A, B]
- Source
- Unmarshaller.scala
- Alphabetic
- By Inheritance
- Unmarshaller
- Unmarshaller
- UnmarshallerBase
- AnyRef
- Any
- by EnhancedFromEntityUnmarshaller
- by EnhancedUnmarshaller
- by fromScala
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def apply(value: A)(implicit ec: ExecutionContext, materializer: Materializer): Future[B]
Concrete Value Members
- def andThen[C](other: Unmarshaller[B, C]): Unmarshaller[A, C]
-
implicit final
def
asScala: Unmarshaller[A, B]
- Definition Classes
- Unmarshaller → Unmarshaller
- def flatMap[C](f: (ExecutionContext) ⇒ (Materializer) ⇒ (B) ⇒ Future[C]): Unmarshaller[A, C]
-
def
flatMap[C](u: javadsl.unmarshalling.Unmarshaller[_ >: B, C]): javadsl.unmarshalling.Unmarshaller[A, C]
- Definition Classes
- Unmarshaller
-
def
flatMap[C](f: Function[B, CompletionStage[C]]): javadsl.unmarshalling.Unmarshaller[A, C]
- Definition Classes
- Unmarshaller
-
def
flatMapWithInput[C](f: (A, B) ⇒ Future[C]): Unmarshaller[A, C]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller.
- Definition Classes
- EnhancedUnmarshaller
-
def
forContentTypes(ranges: ContentTypeRange*): FromEntityUnmarshaller[B]
Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges.
Modifies the underlying Unmarshaller to only accept Content-Types matching one of the given ranges. Note that you can only restrict to a subset of the Content-Types accepted by the underlying unmarshaller, i.e. the given ranges must be completely supported also by the underlying Unmarshaller! If a violation of this rule is detected at runtime, i.e. if an entity is encountered whose Content-Type is matched by one of the given ranges but rejected by the underlying unmarshaller an IllegalStateException will be thrown!
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller. This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- EnhancedFromEntityUnmarshaller
- def map[C](f: (B) ⇒ C): Unmarshaller[A, C]
-
def
mapWithCharset[B](f: (B, HttpCharset) ⇒ B): FromEntityUnmarshaller[B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller. This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- EnhancedFromEntityUnmarshaller
-
def
mapWithInput[C](f: (A, B) ⇒ C): Unmarshaller[A, C]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller.
- Definition Classes
- EnhancedUnmarshaller
- def recover[C >: B](pf: (ExecutionContext) ⇒ (Materializer) ⇒ PartialFunction[Throwable, C]): Unmarshaller[A, C]
-
def
thenApply[C](f: Function[B, C]): javadsl.unmarshalling.Unmarshaller[A, C]
Transform the result
B
of this unmarshaller to aC
producing a marshaller that turnsA
s intoC
sTransform the result
B
of this unmarshaller to aC
producing a marshaller that turnsA
s intoC
s- returns
A new marshaller that can unmarshall instances of
A
into instances ofC
- Definition Classes
- Unmarshaller
- def transform[C](f: (ExecutionContext) ⇒ (Materializer) ⇒ (Future[B]) ⇒ Future[C]): Unmarshaller[A, C]
-
val
um: Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller.
- Definition Classes
- EnhancedUnmarshaller
-
val
underlying: FromEntityUnmarshaller[B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to EnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in akka.http.scaladsl.unmarshalling.Unmarshaller. This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- EnhancedFromEntityUnmarshaller
-
def
unmarshal(value: A, mat: Materializer): CompletionStage[B]
Apply this Unmarshaller to the given value.
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.
- Definition Classes
- Unmarshaller
-
def
unmarshal(value: A, ec: ExecutionContext, mat: Materializer): CompletionStage[B]
Apply this Unmarshaller to the given value.
Apply this Unmarshaller to the given value.
- Definition Classes
- Unmarshaller
- def withDefaultValue[BB >: B](defaultValue: BB): Unmarshaller[A, BB]
Shadowed Implicit Value Members
-
implicit
def
asScala: Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).asScala
- Definition Classes
- Unmarshaller
-
def
flatMap[C](u: javadsl.unmarshalling.Unmarshaller[_ >: B, C]): javadsl.unmarshalling.Unmarshaller[A, C]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).flatMap(u)
- Definition Classes
- Unmarshaller
-
def
flatMap[C](f: Function[B, CompletionStage[C]]): javadsl.unmarshalling.Unmarshaller[A, C]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).flatMap(f)
- Definition Classes
- Unmarshaller
-
def
thenApply[C](f: Function[B, C]): javadsl.unmarshalling.Unmarshaller[A, C]
Transform the result
B
of this unmarshaller to aC
producing a marshaller that turnsA
s intoC
sTransform the result
B
of this unmarshaller to aC
producing a marshaller that turnsA
s intoC
s- returns
A new marshaller that can unmarshall instances of
A
into instances ofC
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).thenApply(f)
- Definition Classes
- Unmarshaller
-
def
unmarshal(value: A, mat: Materializer): CompletionStage[B]
Apply this Unmarshaller to the given value.
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.
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).unmarshal(value, mat)
- Definition Classes
- Unmarshaller
-
def
unmarshal(value: A, ec: ExecutionContext, mat: Materializer): CompletionStage[B]
Apply this Unmarshaller to the given value.
Apply this Unmarshaller to the given value.
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to javadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in akka.http.javadsl.unmarshalling.Unmarshaller.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(unmarshaller: javadsl.unmarshalling.Unmarshaller[A, B]).unmarshal(value, ec, mat)
- Definition Classes
- Unmarshaller