trait Unmarshaller[-A, B] extends javadsl.unmarshalling.Unmarshaller[A, B]
- 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
- Protected
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] toany2stringadd[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] toArrowAssoc[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(classOf[java.lang.CloneNotSupportedException]) @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] toEnsuring[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] toEnsuring[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] toEnsuring[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] toEnsuring[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: AnyRef): 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] toEnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in org.apache.pekko.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] toEnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in org.apache.pekko.http.scaladsl.unmarshalling.Unmarshaller.This conversion will take place only if A is a superclass of HttpEntity (A >: HttpEntity).
- Definition Classes
- EnhancedFromEntityUnmarshaller
- 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
- 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] toEnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in org.apache.pekko.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] toEnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in org.apache.pekko.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
Bof this unmarshaller to aCproducing a marshaller that turnsAs intoCsTransform the result
Bof this unmarshaller to aCproducing a marshaller that turnsAs intoCs- returns
A new marshaller that can unmarshall instances of
Ainto 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] toEnhancedUnmarshaller[A, B] performed by method EnhancedUnmarshaller in org.apache.pekko.http.scaladsl.unmarshalling.Unmarshaller.
- Definition Classes
- EnhancedUnmarshaller
- val underlying: FromEntityUnmarshaller[B]
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] toEnhancedFromEntityUnmarshaller[B] performed by method EnhancedFromEntityUnmarshaller in org.apache.pekko.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, system: ClassicActorSystemProvider): 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, system: ClassicActorSystemProvider): CompletionStage[B]
Apply this Unmarshaller to the given value.
Apply this Unmarshaller to the given value.
- 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.
- 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(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 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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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
Bof this unmarshaller to aCproducing a marshaller that turnsAs intoCsTransform the result
Bof this unmarshaller to aCproducing a marshaller that turnsAs intoCs- returns
A new marshaller that can unmarshall instances of
Ainto instances ofC
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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, system: ClassicActorSystemProvider): 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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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, system)
- Definition Classes
- Unmarshaller
- def unmarshal(value: A, ec: ExecutionContext, system: ClassicActorSystemProvider): 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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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, system)
- 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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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] tojavadsl.unmarshalling.Unmarshaller[A, B] performed by method fromScala in org.apache.pekko.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
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] toStringFormat[Unmarshaller[A, B]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Unmarshaller[A, B], B)
- Implicit
- This member is added by an implicit conversion from Unmarshaller[A, B] toArrowAssoc[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
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.