Packages

object Unmarshaller extends GenericUnmarshallers with PredefinedFromEntityUnmarshallers with PredefinedFromStringUnmarshallers

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Unmarshaller
  2. PredefinedFromStringUnmarshallers
  3. PredefinedFromEntityUnmarshallers
  4. MultipartUnmarshallers
  5. GenericUnmarshallers
  6. LowerPriorityGenericUnmarshallers
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class EitherUnmarshallingException(rightClass: Class[_], right: Throwable, leftClass: Class[_], left: Throwable) extends RuntimeException with Product with Serializable

    Order of parameters (right first, left second) is intentional, since that's the order we evaluate them in.

  2. implicit final class EnhancedFromEntityUnmarshaller[A] extends AnyVal
  3. implicit final class EnhancedUnmarshaller[A, B] extends AnyVal
  4. final class UnsupportedContentTypeException extends RuntimeException with Product with Serializable

    Signals that unmarshalling failed because the entity content-type did not match one of the supported ranges.

    Signals that unmarshalling failed because the entity content-type did not match one of the supported ranges. This error cannot be thrown by custom code, you need to use the forContentTypes modifier on a base akka.http.scaladsl.unmarshalling.Unmarshaller instead.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. implicit def CsvSeq[T](implicit unmarshaller: Unmarshaller[String, T]): Unmarshaller[String, Seq[T]]
  5. val HexByte: Unmarshaller[String, Byte]
  6. val HexInt: Unmarshaller[String, Int]
  7. val HexLong: Unmarshaller[String, Long]
  8. val HexShort: Unmarshaller[String, Short]
  9. implicit def _fromStringUnmarshallerFromByteStringUnmarshaller[T](implicit bsum: FromByteStringUnmarshaller[T]): Unmarshaller[String, T]
  10. def apply[A, B](f: (ExecutionContext) ⇒ (A) ⇒ Future[B]): Unmarshaller[A, B]

    Creates an Unmarshaller from the given function.

  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def bestUnmarshallingCharsetFor(entity: HttpEntity): HttpCharset

    Returns the best charset for unmarshalling the given entity to a character-based representation.

    Returns the best charset for unmarshalling the given entity to a character-based representation. Falls back to UTF-8 if no better alternative can be determined.

  13. implicit val booleanFromStringUnmarshaller: Unmarshaller[String, Boolean]
  14. implicit def byteArrayUnmarshaller: FromEntityUnmarshaller[Array[Byte]]
  15. implicit val byteFromStringUnmarshaller: Unmarshaller[String, Byte]
  16. implicit def byteStringUnmarshaller: FromEntityUnmarshaller[ByteString]
  17. implicit def charArrayUnmarshaller: FromEntityUnmarshaller[Array[Char]]
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  19. implicit def defaultMultipartByteRangesUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[ByteRanges]
    Definition Classes
    MultipartUnmarshallers
  20. implicit def defaultMultipartGeneralUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[General]
    Definition Classes
    MultipartUnmarshallers
  21. implicit def defaultUrlEncodedFormDataUnmarshaller: FromEntityUnmarshaller[FormData]
  22. implicit val doubleFromStringUnmarshaller: Unmarshaller[String, Double]
  23. implicit def eitherUnmarshaller[L, R](implicit ua: FromEntityUnmarshaller[L], rightTag: ClassTag[R], ub: FromEntityUnmarshaller[R], leftTag: ClassTag[L]): FromEntityUnmarshaller[Either[L, R]]

    Enables using Either to encode the following unmarshalling logic: Attempt unmarshalling the entity as as R first (yielding R), and if it fails attempt unmarshalling as L (yielding Left).

    Enables using Either to encode the following unmarshalling logic: Attempt unmarshalling the entity as as R first (yielding R), and if it fails attempt unmarshalling as L (yielding Left).

    The either unmarshaller only works with strict entities, so make sure to wrap routes that want to use it with toStrictEntity. Otherwise, if a non-strict entity is provided, it will fail with an IllegalArgumentException.

    Note that the Either's "R" type will be attempted first (as Left is often considered as the "failed case" in Either).

    Definition Classes
    LowerPriorityGenericUnmarshallers
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def firstOf[A, B](unmarshallers: Unmarshaller[A, B]*): Unmarshaller[A, B]

    Helper for creating a "super-unmarshaller" from a sequence of "sub-unmarshallers", which are tried in the given order.

    Helper for creating a "super-unmarshaller" from a sequence of "sub-unmarshallers", which are tried in the given order. The first successful unmarshalling of a "sub-unmarshallers" is the one produced by the "super-unmarshaller".

  28. implicit val floatFromStringUnmarshaller: Unmarshaller[String, Float]
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. implicit def identityUnmarshaller[T]: Unmarshaller[T, T]
  32. implicit val intFromStringUnmarshaller: Unmarshaller[String, Int]
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. implicit def liftToSourceOptionUnmarshaller[A, B](um: Unmarshaller[A, B]): Unmarshaller[Option[A], B]
  35. implicit def liftToTargetOptionUnmarshaller[A, B](um: Unmarshaller[A, B]): Unmarshaller[A, Option[B]]
    Definition Classes
    GenericUnmarshallers
  36. implicit val longFromStringUnmarshaller: Unmarshaller[String, Long]
  37. implicit def messageUnmarshallerFromEntityUnmarshaller[T](implicit um: FromEntityUnmarshaller[T]): FromMessageUnmarshaller[T]
  38. def multipartByteRangesUnmarshaller(defaultCharset: HttpCharset)(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[ByteRanges]
    Definition Classes
    MultipartUnmarshallers
  39. implicit def multipartFormDataUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[FormData]
    Definition Classes
    MultipartUnmarshallers
  40. def multipartGeneralUnmarshaller(defaultCharset: HttpCharset)(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[General]
    Definition Classes
    MultipartUnmarshallers
  41. def multipartUnmarshaller[T <: Multipart, BP <: BodyPart, BPS <: Strict](mediaRange: MediaRange, defaultContentType: ContentType, createBodyPart: (BodyPartEntity, List[HttpHeader]) ⇒ BP, createStreamed: (Multipart, Source[BP, Any]) ⇒ T, createStrictBodyPart: (Strict, List[HttpHeader]) ⇒ BPS, createStrict: (Multipart, Seq[BPS]) ⇒ T)(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[T]
    Definition Classes
    MultipartUnmarshallers
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. implicit val shortFromStringUnmarshaller: Unmarshaller[String, Short]
  46. implicit def sourceOptionUnmarshaller[A, B](implicit um: Unmarshaller[A, B]): Unmarshaller[Option[A], B]
  47. def strict[A, B](f: (A) ⇒ B): Unmarshaller[A, B]

    Helper for creating a synchronous Unmarshaller from the given function.

  48. implicit def stringUnmarshaller: FromEntityUnmarshaller[String]
  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. implicit def targetOptionUnmarshaller[A, B](implicit um: Unmarshaller[A, B]): Unmarshaller[A, Option[B]]
    Definition Classes
    GenericUnmarshallers
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. def urlEncodedFormDataUnmarshaller(ranges: ContentTypeRange*): FromEntityUnmarshaller[FormData]
  53. implicit val uuidFromStringUnmarshaller: Unmarshaller[String, UUID]
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  57. def withMaterializer[A, B](f: (ExecutionContext) ⇒ (Materializer) ⇒ (A) ⇒ Future[B]): Unmarshaller[A, B]
  58. object NoContentException extends RuntimeException with NoStackTrace with Product with Serializable

    Signals that unmarshalling failed because the entity was unexpectedly empty.

  59. object UnsupportedContentTypeException extends Serializable

Inherited from MultipartUnmarshallers

Inherited from GenericUnmarshallers

Inherited from AnyRef

Inherited from Any

Ungrouped