dispatch.classic

HttpExecutor

trait HttpExecutor extends RequestLogging

Defines request execution and response status code behaviors. Implemented methods are finalized as any overrides would be lost when instantiating delegate executors, is in Threads#future. Delegates should chain to parent pack and execute implementations.

Linear Supertypes
RequestLogging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HttpExecutor
  2. RequestLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type HttpPackage[T]

    Type of value returned from request execution

Abstract Value Members

  1. abstract def consumeContent(entity: Option[HttpEntity]): Unit

    Allow executor to release any resources for an entity

  2. abstract def execute[T](host: HttpHost, creds: Option[Credentials], req: HttpRequestBase, block: (HttpResponse) ⇒ T, listener: ExceptionListener): HttpPackage[T]

    Execute the request against an HttpClient

  3. abstract def executeWithCallback[T](host: HttpHost, credsopt: Option[Credentials], req: HttpRequestBase, block: Callback[T]): HttpPackage[T]

  4. abstract def shutdownClient(): Unit

    Attributes
    protected

Concrete 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 apply[T](callback: Callback[T]): HttpPackage[T]

    Apply handler block when response code is 200 - 204

  5. final def apply[T](hand: Handler[T]): HttpPackage[T]

    Apply handler block when response code is 200 - 204

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

    Call shutdown if not already shutdown, issue warning

    Call shutdown if not already shutdown, issue warning

    Definition Classes
    HttpExecutor → AnyRef
  11. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  14. lazy val log: Logger

    Definition Classes
    RequestLogging
  15. def make_logger: Logger

    Logger for this executor, logs to console.

    Logger for this executor, logs to console.

    Definition Classes
    RequestLogging
  16. def make_message(req: Request): HttpRequestBase

  17. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  20. def shutdown(): Unit

    Release resources held by the executor.

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

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def when[T](chk: (Int) ⇒ Boolean)(hand: Handler[T]): HttpPackage[T]

    Apply Response Handler if reponse code returns true from chk.

  27. final def x[T](hand: Handler[T]): HttpPackage[T]

    Execute full request-response handler, response in package.

Deprecated Value Members

  1. final def x[T](req: Request)(block: F[T]): HttpPackage[T]

    Annotations
    @deprecated
    Deprecated

    Use x[T](hand: Handler[T]) instead. Construct a Handler if needed.

Inherited from RequestLogging

Inherited from AnyRef

Inherited from Any

Ungrouped