Object/Class

akka.http.scaladsl.marshalling

Marshaller

Related Docs: class Marshaller | package marshalling

Permalink

object Marshaller extends GenericMarshallers with PredefinedToEntityMarshallers with PredefinedToResponseMarshallers with PredefinedToRequestMarshallers

Source
Marshaller.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Marshaller
  2. PredefinedToRequestMarshallers
  3. PredefinedToResponseMarshallers
  4. PredefinedToEntityMarshallers
  5. MultipartMarshallers
  6. GenericMarshallers
  7. LowPriorityToResponseMarshallerImplicits
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 val ByteArrayMarshaller: ToEntityMarshaller[Array[Byte]]

    Permalink
  5. implicit val ByteStringMarshaller: ToEntityMarshaller[ByteString]

    Permalink
  6. implicit val CharArrayMarshaller: ToEntityMarshaller[Array[Char]]

    Permalink
  7. implicit val DoneMarshaller: ToEntityMarshaller[Done]

    Permalink
  8. implicit val FormDataMarshaller: ToEntityMarshaller[FormData]

    Permalink
  9. implicit val MessageEntityMarshaller: ToEntityMarshaller[MessageEntity]

    Permalink
  10. implicit val StringMarshaller: ToEntityMarshaller[String]

    Permalink
  11. def apply[A, B](f: (ExecutionContext) ⇒ (A) ⇒ Future[List[Marshalling[B]]]): Marshaller[A, B]

    Permalink

    Creates a Marshaller from the given function.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def byteArrayMarshaller(contentType: ContentType): ToEntityMarshaller[Array[Byte]]

    Permalink
  14. def byteStringMarshaller(contentType: ContentType): ToEntityMarshaller[ByteString]

    Permalink
  15. def charArrayMarshaller(mediaType: WithFixedCharset): ToEntityMarshaller[Array[Char]]

    Permalink
  16. def charArrayMarshaller(mediaType: WithOpenCharset): ToEntityMarshaller[Array[Char]]

    Permalink
  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def combined[A, B, C](marshal: (A) ⇒ B)(implicit m2: Marshaller[B, C]): Marshaller[A, C]

    Permalink

    Helper for creating a Marshaller combined of the provided marshal function and an implicit Marshaller which is able to produce the required final type.

  19. implicit def eitherMarshaller[A1, A2, B](implicit m1: Marshaller[A1, B], m2: Marshaller[A2, B]): Marshaller[Either[A1, A2], B]

    Permalink
    Definition Classes
    GenericMarshallers
  20. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. implicit def fromEntityStreamingSupportAndByteStringMarshaller[T, M](implicit s: EntityStreamingSupport, m: ToByteStringMarshaller[T]): ToResponseMarshaller[Source[T, M]]

    Permalink
  24. implicit def fromEntityStreamingSupportAndEntityMarshaller[T, M](implicit s: EntityStreamingSupport, m: ToEntityMarshaller[T]): ToResponseMarshaller[Source[T, M]]

    Permalink
  25. implicit def fromMethodAndUriAndHeadersAndValue[T](implicit mt: ToEntityMarshaller[T]): TRM[(HttpMethod, Uri, Seq[HttpHeader], T)]

    Permalink
  26. implicit def fromMethodAndUriAndValue[S, T](implicit mt: ToEntityMarshaller[T]): TRM[(HttpMethod, Uri, T)]

    Permalink
  27. implicit val fromRequest: TRM[HttpRequest]

    Permalink
  28. implicit val fromResponse: TRM[HttpResponse]

    Permalink
  29. implicit val fromStatusCode: TRM[StatusCode]

    Permalink

    Creates a response for a status code.

    Creates a response for a status code. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

    Definition Classes
    PredefinedToResponseMarshallers
  30. implicit val fromStatusCodeAndHeaders: TRM[(StatusCode, Seq[HttpHeader])]

    Permalink

    Creates a response from status code and headers.

    Creates a response from status code and headers. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

    Definition Classes
    PredefinedToResponseMarshallers
  31. implicit def fromStatusCodeAndHeadersAndValue[T](implicit mt: ToEntityMarshaller[T]): TRM[(StatusCode, Seq[HttpHeader], T)]

    Permalink
  32. implicit def fromStatusCodeAndValue[S, T](implicit sConv: (S) ⇒ StatusCode, mt: ToEntityMarshaller[T]): TRM[(S, T)]

    Permalink
  33. implicit def fromStatusCodeConvertibleAndHeadersAndT[S, T](implicit sConv: (S) ⇒ StatusCode, mt: ToEntityMarshaller[T]): TRM[(S, Seq[HttpHeader], T)]

    Permalink
  34. def fromToEntityMarshaller[T](status: StatusCode = StatusCodes.OK, headers: Seq[HttpHeader] = Nil)(implicit m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

    Permalink
  35. implicit def fromUri: TRM[Uri]

    Permalink
  36. implicit def futureMarshaller[A, B](implicit m: Marshaller[A, B]): Marshaller[Future[A], B]

    Permalink
    Definition Classes
    GenericMarshallers
  37. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  40. implicit def liftMarshaller[T](implicit m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

    Permalink
  41. implicit def liftMarshallerConversion[T](m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

    Permalink
  42. def multipartBoundaryLength: Int

    Permalink

    The length of randomly generated multipart boundaries (before base64 encoding).

    The length of randomly generated multipart boundaries (before base64 encoding). Can be overridden to configure.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  43. def multipartBoundaryRandom: Random

    Permalink

    The random instance that is used to create multipart boundaries.

    The random instance that is used to create multipart boundaries. This can be overriden (e.g. in tests) to choose how a boundary is created.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  44. implicit def multipartMarshaller[T <: Multipart](implicit log: LoggingAdapter = DefaultNoLogging): ToEntityMarshaller[T]

    Permalink
    Definition Classes
    MultipartMarshallers
  45. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  48. def oneOf[T, A, B](values: T*)(f: (T) ⇒ Marshaller[A, B]): Marshaller[A, B]

    Permalink

    Helper for creating a "super-marshaller" from a number of values and a function producing "sub-marshallers" from these values.

    Helper for creating a "super-marshaller" from a number of values and a function producing "sub-marshallers" from these values. Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

  49. def oneOf[A, B](marshallers: Marshaller[A, B]*): Marshaller[A, B]

    Permalink

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

  50. def opaque[A, B](marshal: (A) ⇒ B): Marshaller[A, B]

    Permalink

    Helper for creating a synchronous Marshaller to non-negotiable content from the given function.

  51. implicit def optionMarshaller[A, B](implicit m: Marshaller[A, B], empty: EmptyValue[B]): Marshaller[Option[A], B]

    Permalink
    Definition Classes
    GenericMarshallers
  52. def randomBoundary(): String

    Permalink

    The method used to create boundaries in multipartMarshaller.

    The method used to create boundaries in multipartMarshaller. Can be overridden to create custom boundaries.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  53. def strict[A, B](f: (A) ⇒ Marshalling[B]): Marshaller[A, B]

    Permalink

    Helper for creating a Marshaller using the given function.

  54. def stringMarshaller(mediaType: WithFixedCharset): ToEntityMarshaller[String]

    Permalink
  55. def stringMarshaller(mediaType: WithOpenCharset): ToEntityMarshaller[String]

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

    Permalink
    Definition Classes
    AnyRef
  57. implicit def throwableMarshaller[T]: Marshaller[Throwable, T]

    Permalink
    Definition Classes
    GenericMarshallers
  58. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  59. implicit def tryMarshaller[A, B](implicit m: Marshaller[A, B]): Marshaller[Try[A], B]

    Permalink
    Definition Classes
    GenericMarshallers
  60. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def withFixedContentType[A, B](contentType: ContentType)(marshal: (A) ⇒ B): Marshaller[A, B]

    Permalink

    Helper for creating a synchronous Marshaller to content with a fixed charset from the given function.

  64. def withOpenCharset[A, B](mediaType: WithOpenCharset)(marshal: (A, HttpCharset) ⇒ B): Marshaller[A, B]

    Permalink

    Helper for creating a synchronous Marshaller to content with a negotiable charset from the given function.

Inherited from MultipartMarshallers

Inherited from GenericMarshallers

Inherited from AnyRef

Inherited from Any

Ungrouped