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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to any2stringadd[Unmarshaller[A, B]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (Unmarshaller[A, B], B)
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to ArrowAssoc[Unmarshaller[A, B]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[C](other: Unmarshaller[B, C]): Unmarshaller[A, C]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit final
def
asScala: Unmarshaller[A, B]
- Definition Classes
- Unmarshaller → Unmarshaller
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
ensuring(cond: (Unmarshaller[A, B]) ⇒ Boolean, msg: ⇒ Any): Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to Ensuring[Unmarshaller[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (Unmarshaller[A, B]) ⇒ Boolean): Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to Ensuring[Unmarshaller[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to Ensuring[Unmarshaller[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): Unmarshaller[A, B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to Ensuring[Unmarshaller[A, B]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- 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
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to StringFormat[Unmarshaller[A, B]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
-
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 recover[C >: B](pf: (ExecutionContext) ⇒ (Materializer) ⇒ PartialFunction[Throwable, C]): Unmarshaller[A, C]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
toString(): String
- Definition Classes
- AnyRef → Any
- 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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withDefaultValue[BB >: B](defaultValue: BB): Unmarshaller[A, BB]
-
def
→[B](y: B): (Unmarshaller[A, B], B)
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] to ArrowAssoc[Unmarshaller[A, B]] performed by method ArrowAssoc in scala.Predef. This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- ArrowAssoc
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