Class/Object

com.github.vitalsoftware.scalaredox.client

RedoxClient

Related Docs: object RedoxClient | package client

Permalink

class RedoxClient extends AnyRef

Created by apatzer on 3/20/17.

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

Instance Constructors

  1. new RedoxClient(conf: Config, system: ActorSystem, materializer: ActorMaterializer, reducer: (JsValue) ⇒ JsValue = _.reduceNullSubtrees)

    Permalink

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def authorize(): Future[AuthInfo]

    Permalink

    Authorize to Redox, returning a Future containing the access and refresh tokens.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink

    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)

  11. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  14. implicit val materializer: ActorMaterializer

    Permalink
  15. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def post[T, U](data: T)(implicit writes: Writes[T], reads: Reads[U]): Future[RedoxResponse[U]]

    Permalink

    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)

  19. def refresh(auth: AuthInfo): Future[AuthInfo]

    Permalink

    Refresh the access and refresh tokens.

  20. def scheduleRefresh(auth: AuthInfo): Unit

    Permalink

    Refresh the auth token a minute before it expires.

    Refresh the auth token a minute before it expires. Set and schedule a new refresh to occur. NOTE: If this method is overridden, scheduling and storing the new auth token will not be available to the implementing class.

    Attributes
    protected
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. implicit val system: ActorSystem

    Permalink
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. def upload(file: File, fileContentType: String = "text/plain", contentLength: Long = 2097000L): Future[RedoxResponse[Upload]]

    Permalink

    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.

  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped