class RedoxClient extends RedoxClientComponents

Created by apatzer on 3/20/17.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedoxClient
  2. RedoxClientComponents
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedoxClient(conf: ClientConfig, client: HttpClient, tokenManager: RedoxTokenManager, reducer: (JsValue) ⇒ JsValue = _.reduceNullSubtrees)(implicit system: ActorSystem, materializer: Materializer)
  2. new RedoxClient(conf: Config)(implicit system: ActorSystem, materializer: Materializer)

    Use default reducer, with internally initialized http client and token manager.

    Use default reducer, with internally initialized http client and token manager.

    Deprecated

    prefer initializing the HttpClient and token manager outside RedoxClient. Do not create more than one RedoxClient with this constructor as it will initialize duplicate TokenManagers and http clients.

  3. new RedoxClient(conf: Config, client: HttpClient, reducer: (JsValue) ⇒ JsValue)(implicit system: ActorSystem, materializer: Materializer)

    Initialize and internal HttpClient and a token manager.

    Initialize and internal HttpClient and a token manager. Added for backward compatibility.

    Deprecated

    prefer initializing the HttpClient and token manager outside RedoxClient. Do not create more than one RedoxClient with this constructor as it will initialize duplicate TokenManagers and http clients.

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 basePost: Self
    Attributes
    protected
    Definition Classes
    RedoxClientComponents
  6. def baseQuery: Self
    Attributes
    protected
    Definition Classes
    RedoxClientComponents
  7. def baseRequest(url: String): StandaloneWSRequest
    Attributes
    protected
    Definition Classes
    RedoxClientComponents
  8. def baseUpload: Self
    Attributes
    protected
    Definition Classes
    RedoxClientComponents
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def execute[T](request: StandaloneWSRequest)(implicit format: Reads[T]): Future[RedoxResponse[T]]

    Raw request execution

    Raw request execution

    Attributes
    protected
    Definition Classes
    RedoxClientComponents
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get[T, U](query: T)(implicit writes: Writes[T], reads: Reads[U]): Future[RedoxResponse[U]]

    Send a query/read-request of type 'T' expecting a response of type 'U' Ex.

    Send a query/read-request of type 'T' expecting a response of type 'U' Ex. get[PatientQuery => case ClinicalSummary](query)

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. implicit val materializer: Materializer
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def post[T, U](data: T)(implicit writes: Writes[T], reads: Reads[U]): Future[RedoxResponse[U]]

    Send a post/write-request of type 'T' expecting a response of type 'U' Ex.

    Send a post/write-request of type 'T' expecting a response of type 'U' Ex. post[ClinicalSummary => case EmptyResponse](data)

  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. implicit val system: ActorSystem
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def upload(file: File, fileContentType: String = "text/plain", contentLength: Long = 2097000L): Future[RedoxResponse[Upload]]

    Uploads a file to the Redox /uploads endpoint.

    Uploads a file to the Redox /uploads endpoint. Provides sensible defaults for file content type and content length.

    file

    The file to upload to Redox.

    fileContentType

    The content type of the file (used when converting the file to a source stream. Defaults to 'text/plain'.

    contentLength

    The length that will be used to set the 'content-length' on the request. Provides a default value of of ~2MB (2,097,000 octets). This is needed as when we provide a Source we have to manually set the length or the backend http client will chunk the request. (src: play.api.libs.ws.ahc.StandaloneAhcWSRequest#buildRequest() line: 303).

    returns

    A future containing the redox upload response.

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from RedoxClientComponents

Inherited from AnyRef

Inherited from Any

Ungrouped