Packages

class AsyncCachingHandler[T] extends AsyncHandler[T] with TimeoutResponse with Debug

An async handler that accumulates response data to place in cache with the given key.

Linear Supertypes
Debug, AhcUtilities, TimeoutResponse, AsyncHandler[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncCachingHandler
  2. Debug
  3. AhcUtilities
  4. TimeoutResponse
  5. AsyncHandler
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AsyncCachingHandler(request: Request, handler: AsyncCompletionHandler[T], cache: AhcHttpCache, maybeAction: Option[ResponseServeAction], ahcConfig: AsyncHttpClientConfig)

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. val builder: CacheableResponseBuilder
    Attributes
    protected
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. def debug(bodyPart: HttpResponseBodyPart): String
    Definition Classes
    Debug
  8. def debug[T](ctx: FilterContext[T]): String
    Definition Classes
    Debug
  9. def debug[T](handler: AsyncHandler[T]): String
    Definition Classes
    Debug
  10. def debug(bodyParts: List[HttpResponseBodyPart]): String
    Definition Classes
    Debug
  11. def debug(responseHeaders: HttpHeaders): String
    Definition Classes
    Debug
  12. def debug(responseStatus: HttpResponseStatus): String
    Definition Classes
    Debug
  13. def debug(response: Response): String
    Definition Classes
    Debug
  14. def debug(request: Request): String
    Definition Classes
    Debug
  15. def debug(cfg: AsyncHttpClientConfig): String
    Definition Classes
    Debug
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def generateTimeoutResponse(request: Request, ahcConfig: AsyncHttpClientConfig): CacheableResponse
    Definition Classes
    TimeoutResponse
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  21. def headersToMap(headers: HttpHeaders): TreeMap[String, Seq[String]]
    Definition Classes
    AhcUtilities
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. val key: EffectiveURIKey
    Attributes
    protected
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  27. def onBodyPartReceived(bodyPart: HttpResponseBodyPart): State

    Body parts has been received.

    Body parts has been received. This method can be invoked many time depending of the response’s bytes body.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  28. def onCompleted(): T

    onCompleted: Invoked when the full response has been read, or if the processing get aborted (more on this below).

    onCompleted: Invoked when the full response has been read, or if the processing get aborted (more on this below).

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  29. def onConnectionOffer(arg0: Channel): Unit
    Definition Classes
    AsyncHandler
  30. def onConnectionPoolAttempt(): Unit
    Definition Classes
    AsyncHandler
  31. def onConnectionPooled(arg0: Channel): Unit
    Definition Classes
    AsyncHandler
  32. def onHeadersReceived(responseHeaders: HttpHeaders): State

    Called when all response’s headers has been processed.

    Called when all response’s headers has been processed.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  33. def onHostnameResolutionAttempt(arg0: String): Unit
    Definition Classes
    AsyncHandler
  34. def onHostnameResolutionFailure(arg0: String, arg1: Throwable): Unit
    Definition Classes
    AsyncHandler
  35. def onHostnameResolutionSuccess(arg0: String, arg1: List[InetSocketAddress]): Unit
    Definition Classes
    AsyncHandler
  36. def onRequestSend(arg0: NettyRequest): Unit
    Definition Classes
    AsyncHandler
  37. def onRetry(): Unit
    Definition Classes
    AsyncHandler
  38. def onStatusReceived(responseStatus: HttpResponseStatus): State

    Called when the status line has been processed.

    Called when the status line has been processed.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  39. def onTcpConnectAttempt(arg0: InetSocketAddress): Unit
    Definition Classes
    AsyncHandler
  40. def onTcpConnectFailure(arg0: InetSocketAddress, arg1: Throwable): Unit
    Definition Classes
    AsyncHandler
  41. def onTcpConnectSuccess(arg0: InetSocketAddress, arg1: Channel): Unit
    Definition Classes
    AsyncHandler
  42. def onThrowable(t: Throwable): Unit

    Invoked if something wrong happened inside the previous methods or when an I/O exception occurs.

    Invoked if something wrong happened inside the previous methods or when an I/O exception occurs.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  43. def onTlsHandshakeAttempt(): Unit
    Definition Classes
    AsyncHandler
  44. def onTlsHandshakeFailure(arg0: Throwable): Unit
    Definition Classes
    AsyncHandler
  45. def onTlsHandshakeSuccess(arg0: SSLSession): Unit
    Definition Classes
    AsyncHandler
  46. def onTrailingHeadersReceived(arg0: HttpHeaders): State
    Definition Classes
    AsyncHandler
    Annotations
    @throws(classOf[java.lang.Exception])
  47. def processDisconnectedResponse(): T
    Attributes
    protected
  48. def processFullResponse(fullResponse: CacheableResponse): T
    Attributes
    protected
  49. def processNotModifiedResponse(notModifiedResponse: CacheableResponse): T
    Attributes
    protected
  50. def processStaleResponse(response: CacheableResponse): T
    Attributes
    protected
  51. def processTimeoutResponse(): Unit
    Attributes
    protected
  52. val requestTime: ZonedDateTime
    Attributes
    protected
  53. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  54. val timeout: Duration
    Attributes
    protected
  55. lazy val timeoutResponse: CacheableResponse
    Attributes
    protected
  56. def toString(): String
    Definition Classes
    AsyncCachingHandler → AnyRef → Any
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Debug

Inherited from AhcUtilities

Inherited from TimeoutResponse

Inherited from AsyncHandler[T]

Inherited from AnyRef

Inherited from Any

Ungrouped