com.mle.android.http

WebHttpClient

class WebHttpClient extends UtilLog

Wraps AsyncHttpClient in order to provide a Future-based HTTP API instead of a callback-based one.

Linear Supertypes
UtilLog, MleLog, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WebHttpClient
  2. UtilLog
  3. MleLog
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebHttpClient(endpoint: IEndpoint)

  2. new WebHttpClient(host: String, port: Int, username: String, password: String, protocol: Protocol)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addHeaders(headers: (String, String)*): Unit

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. val baseUrl: String

  9. def buildResponseHandler(promise: Promise[HttpResponse]): AsyncHttpResponseHandler

  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def debug(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def err(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  15. def failMessage(e: Throwable, stackTrace: Boolean = true): String

    Attributes
    protected
    Definition Classes
    MleLog
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def get[T](resource: String, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

  18. def get(resource: String): Future[HttpResponse]

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

    Definition Classes
    AnyRef → Any
  20. def getEmpty(resource: String): Future[Unit]

  21. def getJson[T](resource: String)(implicit fjs: Reads[T]): Future[T]

  22. def handleFailure(t: Throwable, maybeContent: String): Throwable

  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. val httpClient: AsyncHttpClient

  25. def info(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def post[T](ctx: Context, resource: String, json: JsValue, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

  31. def post(ctx: Context, resource: String, json: JsValue): Future[HttpResponse]

  32. def postFile[T](resource: String, file: File, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

    Performs a multipart/form-data upload of file.

    Performs a multipart/form-data upload of file.

    file

    file to upload

  33. def postFile(resource: String, file: File): Future[HttpResponse]

  34. def postFileEmpty(resource: String, file: File): Future[Unit]

  35. def promisedFuture[T](keepPromise: (Promise[T]) ⇒ Unit): Future[T]

    Constructs a future that is completed according to keepPromise.

    Constructs a future that is completed according to keepPromise. This pattern can be used to convert callback-based APIs to Future-based ones. For example, parameter keepPromise can call some callback-based API, and the callback implementation can complete the supplied promise.

    T

    type of value to complete promise with

    keepPromise

    code that completes the promise

    returns

    the future completion value

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

    Definition Classes
    AnyRef
  37. def tag: String

    Definition Classes
    UtilLogMleLog
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. def uri(resource: String): String

  40. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def warn(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  44. def warn(msg: ⇒ String, ex: Throwable): Unit

    Definition Classes
    MleLog

Inherited from UtilLog

Inherited from MleLog

Inherited from AnyRef

Inherited from Any

Ungrouped