Object/Trait

akka.http.scaladsl.unmarshalling

Unmarshaller

Related Docs: trait Unmarshaller | package unmarshalling

Permalink

object Unmarshaller extends GenericUnmarshallers with PredefinedFromEntityUnmarshallers with PredefinedFromStringUnmarshallers

Source
Unmarshaller.scala
Linear Supertypes
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

    Permalink

    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

    Permalink
  3. implicit final class EnhancedUnmarshaller[A, B] extends AnyVal

    Permalink
  4. final class UnsupportedContentTypeException extends RuntimeException with Product with Serializable

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit def CsvSeq[T](implicit unmarshaller: Unmarshaller[String, T]): Unmarshaller[String, Seq[T]]

    Permalink
  5. val HexByte: Unmarshaller[String, Byte]

    Permalink
  6. val HexInt: Unmarshaller[String, Int]

    Permalink
  7. val HexLong: Unmarshaller[String, Long]

    Permalink
  8. val HexShort: Unmarshaller[String, Short]

    Permalink
  9. object NoContentException extends RuntimeException with NoStackTrace with Product with Serializable

    Permalink

    Signals that unmarshalling failed because the entity was unexpectedly empty.

  10. object UnsupportedContentTypeException extends Serializable

    Permalink
  11. implicit def _fromStringUnmarshallerFromByteStringUnmarshaller[T](implicit bsum: FromByteStringUnmarshaller[T]): Unmarshaller[String, T]

    Permalink
  12. def apply[A, B](f: (ExecutionContext) ⇒ (A) ⇒ Future[B]): Unmarshaller[A, B]

    Permalink

    Creates an Unmarshaller from the given function.

  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def bestUnmarshallingCharsetFor(entity: HttpEntity): HttpCharset

    Permalink

    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.

  15. implicit val booleanFromStringUnmarshaller: Unmarshaller[String, Boolean]

    Permalink
  16. implicit def byteArrayUnmarshaller: FromEntityUnmarshaller[Array[Byte]]

    Permalink
  17. implicit val byteFromStringUnmarshaller: Unmarshaller[String, Byte]

    Permalink
  18. implicit def byteStringUnmarshaller: FromEntityUnmarshaller[ByteString]

    Permalink
  19. implicit def charArrayUnmarshaller: FromEntityUnmarshaller[Array[Char]]

    Permalink
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. implicit def defaultMultipartByteRangesUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[ByteRanges]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  22. implicit def defaultMultipartGeneralUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[General]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  23. implicit def defaultUrlEncodedFormDataUnmarshaller: FromEntityUnmarshaller[FormData]

    Permalink
  24. implicit val doubleFromStringUnmarshaller: Unmarshaller[String, Double]

    Permalink
  25. implicit def eitherUnmarshaller[L, R](implicit ua: FromEntityUnmarshaller[L], rightTag: ClassTag[R], ub: FromEntityUnmarshaller[R], leftTag: ClassTag[L]): FromEntityUnmarshaller[Either[L, R]]

    Permalink

    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
  26. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  28. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  29. def firstOf[A, B](unmarshallers: Unmarshaller[A, B]*): Unmarshaller[A, B]

    Permalink

    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".

  30. implicit val floatFromStringUnmarshaller: Unmarshaller[String, Float]

    Permalink
  31. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. implicit def identityUnmarshaller[T]: Unmarshaller[T, T]

    Permalink
  34. implicit val intFromStringUnmarshaller: Unmarshaller[String, Int]

    Permalink
  35. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  36. implicit def liftToSourceOptionUnmarshaller[A, B](um: Unmarshaller[A, B]): Unmarshaller[Option[A], B]

    Permalink
  37. implicit def liftToTargetOptionUnmarshaller[A, B](um: Unmarshaller[A, B]): Unmarshaller[A, Option[B]]

    Permalink
    Definition Classes
    GenericUnmarshallers
  38. implicit val longFromStringUnmarshaller: Unmarshaller[String, Long]

    Permalink
  39. implicit def messageUnmarshallerFromEntityUnmarshaller[T](implicit um: FromEntityUnmarshaller[T]): FromMessageUnmarshaller[T]

    Permalink
  40. def multipartByteRangesUnmarshaller(defaultCharset: HttpCharset)(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[ByteRanges]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  41. implicit def multipartFormDataUnmarshaller(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[FormData]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  42. def multipartGeneralUnmarshaller(defaultCharset: HttpCharset)(implicit log: LoggingAdapter = NoLogging, parserSettings: ParserSettings = null): FromEntityUnmarshaller[General]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  43. 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]

    Permalink
    Definition Classes
    MultipartUnmarshallers
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  47. implicit val shortFromStringUnmarshaller: Unmarshaller[String, Short]

    Permalink
  48. implicit def sourceOptionUnmarshaller[A, B](implicit um: Unmarshaller[A, B]): Unmarshaller[Option[A], B]

    Permalink
  49. def strict[A, B](f: (A) ⇒ B): Unmarshaller[A, B]

    Permalink

    Helper for creating a synchronous Unmarshaller from the given function.

  50. implicit def stringUnmarshaller: FromEntityUnmarshaller[String]

    Permalink
  51. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  52. implicit def targetOptionUnmarshaller[A, B](implicit um: Unmarshaller[A, B]): Unmarshaller[A, Option[B]]

    Permalink
    Definition Classes
    GenericUnmarshallers
  53. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  54. def urlEncodedFormDataUnmarshaller(ranges: ContentTypeRange*): FromEntityUnmarshaller[FormData]

    Permalink
  55. implicit val uuidFromStringUnmarshaller: Unmarshaller[String, UUID]

    Permalink
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def withMaterializer[A, B](f: (ExecutionContext) ⇒ (Materializer) ⇒ (A) ⇒ Future[B]): Unmarshaller[A, B]

    Permalink

Inherited from MultipartUnmarshallers

Inherited from GenericUnmarshallers

Inherited from AnyRef

Inherited from Any

Ungrouped