Packages

c

caliban.interop.play

PlayJsonBackend

final class PlayJsonBackend extends JsonBackend with PlayJsonSupport

Play-json backend for akka-http routes.
Requires "de.heikoseeberger" %% "akka-http-play-json" to be on the classpath (checked at compile-time).

See also

AkkaHttpAdapter for usage example.

Linear Supertypes
PlayJsonSupport, JsonBackend, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PlayJsonBackend
  2. PlayJsonSupport
  3. JsonBackend
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PlayJsonBackend()

Type Members

  1. type SourceOf[A] = Source[A, _]
    Definition Classes
    PlayJsonSupport

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def encodeGraphQLResponse(r: GraphQLResponse[Any]): String
    Definition Classes
    PlayJsonBackendJsonBackend
  7. def encodeWSError(id: String, error: Throwable): String
    Definition Classes
    PlayJsonBackendJsonBackend
  8. def encodeWSResponse[E](id: String, data: ResponseValue, errors: List[E]): String
    Definition Classes
    PlayJsonBackendJsonBackend
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. implicit def fromByteStringUnmarshaller[A](implicit arg0: Reads[A]): Unmarshaller[ByteString, A]
    Definition Classes
    PlayJsonSupport
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. implicit def marshaller[A](implicit writes: Writes[A], printer: (JsValue) ⇒ String): ToEntityMarshaller[A]
    Definition Classes
    PlayJsonSupport
  17. def mediaTypes: Seq[WithFixedCharset]
    Definition Classes
    PlayJsonSupport
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def parseHttpRequest(query: String, op: Option[String], vars: Option[String], exts: Option[String]): Either[Throwable, GraphQLRequest]
    Definition Classes
    PlayJsonBackendJsonBackend
  22. def parseWSMessage(text: String): Either[Throwable, WSMessage]
    Definition Classes
    PlayJsonBackendJsonBackend
  23. def reqUnmarshaller: FromEntityUnmarshaller[GraphQLRequest]
    Definition Classes
    PlayJsonBackendJsonBackend
  24. implicit def sourceMarshaller[A](implicit writes: Writes[A], printer: (JsValue) ⇒ String, support: JsonEntityStreamingSupport): ToEntityMarshaller[SourceOf[A]]
    Definition Classes
    PlayJsonSupport
  25. implicit def sourceUnmarshaller[A](implicit arg0: Reads[A], support: JsonEntityStreamingSupport): FromEntityUnmarshaller[SourceOf[A]]
    Definition Classes
    PlayJsonSupport
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. implicit def unmarshaller[A](implicit arg0: Reads[A]): FromEntityUnmarshaller[A]
    Definition Classes
    PlayJsonSupport
  29. def unmarshallerContentTypes: Seq[ContentTypeRange]
    Definition Classes
    PlayJsonSupport
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from PlayJsonSupport

Inherited from JsonBackend

Inherited from AnyRef

Inherited from Any

Ungrouped