Trait

com.mle.android.http

FutureHttpClient

Related Doc: package http

Permalink

trait FutureHttpClient extends UtilLog with Closeable

Linear Supertypes
Closeable, AutoCloseable, UtilLog, MleLog, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FutureHttpClient
  2. Closeable
  3. AutoCloseable
  4. UtilLog
  5. MleLog
  6. AnyRef
  7. 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. def addHeaders(headers: (String, String)*): Unit

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink
    Definition Classes
    FutureHttpClient → Closeable → AutoCloseable
  8. def debug(msg: ⇒ String): Unit

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    MleLog
  13. def fileResponseHandler(file: File, promise: Promise[File]): FileAsyncHttpResponseHandler

    Permalink
  14. def finalize(): Unit

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

    Permalink
  16. def get(uri: String): Future[HttpResponse]

    Permalink

    GETs uri.

    GETs uri.

    The returned Future fails with an java.io.IOException if the server cannot be reached, an UnauthorizedHttpException if authentication fails and a NotFoundHttpException if the server responds with a 404. For other errors it may fail with a cz.msebera.android.httpclient.client.HttpResponseException containing the appropriate error code.

    uri

    request uri

    returns

    the HTTP response following a successful request

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getEmpty(uri: String): Future[Unit]

    Permalink
  19. def getFile(uri: String, file: File): Future[File]

    Permalink
  20. def handleFailure(t: Throwable, maybeContent: Option[String]): Throwable

    Permalink
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. val httpClient: AsyncHttpClient

    Permalink
  23. val httpFailureHandler: PartialFunction[Throwable, Throwable]

    Permalink
  24. val httpFailureRefiner: PartialFunction[Throwable, Throwable]

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. val passThroughHandler: PartialFunction[Throwable, Throwable]

    Permalink
  31. def postFile[T](uri: String, file: File, f: (Promise[T]) ⇒ AsyncHttpResponseHandler): Future[T]

    Permalink

    Performs a multipart/form-data upload of file.

    Performs a multipart/form-data upload of file.

    file

    file to upload

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

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

    Permalink
    Definition Classes
    AnyRef
  34. def tag: String

    Permalink
    Definition Classes
    UtilLogMleLog
  35. def textResponseHandler(promise: Promise[HttpResponse]): TextHttpResponseHandler

    Permalink
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def transformUri(uri: String): String

    Permalink

    Gets called before the request is executed.

    Gets called before the request is executed.

    The default implementation trivially returns uri.

    uri

    the user-supplied uri string

    returns

    the uri actually used in the request

  38. final def wait(): Unit

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

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

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

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

    Permalink
    Definition Classes
    MleLog

Inherited from Closeable

Inherited from AutoCloseable

Inherited from UtilLog

Inherited from MleLog

Inherited from AnyRef

Inherited from Any

Ungrouped