Class/Object

play.api.libs.ws.ahc.cache

AsyncCachingHandler

Related Docs: object AsyncCachingHandler | package cache

Permalink

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.

Source
AsyncCachingHandler.scala
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. All

Instance Constructors

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

    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. val builder: CacheableResponseBuilder

    Permalink
    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def debug(bodyPart: HttpResponseBodyPart): String

    Permalink
    Definition Classes
    Debug
  8. def debug[T](ctx: FilterContext[T]): String

    Permalink
    Definition Classes
    Debug
  9. def debug[T](handler: AsyncHandler[T]): String

    Permalink
    Definition Classes
    Debug
  10. def debug(bodyParts: List[HttpResponseBodyPart]): String

    Permalink
    Definition Classes
    Debug
  11. def debug(responseHeaders: HttpResponseHeaders): String

    Permalink
    Definition Classes
    Debug
  12. def debug(responseStatus: HttpResponseStatus): String

    Permalink
    Definition Classes
    Debug
  13. def debug(response: Response): String

    Permalink
    Definition Classes
    Debug
  14. def debug(request: Request): String

    Permalink
    Definition Classes
    Debug
  15. def debug(cfg: AsyncHttpClientConfig): String

    Permalink
    Definition Classes
    Debug
  16. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def generateTimeoutResponse(request: Request): CacheableResponse

    Permalink
    Definition Classes
    TimeoutResponse
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. def headersToMap(headers: HttpHeaders): TreeMap[String, Seq[String]]

    Permalink
    Definition Classes
    AhcUtilities
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. val key: EffectiveURIKey

    Permalink
    Attributes
    protected
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def onBodyPartReceived(bodyPart: HttpResponseBodyPart): State

    Permalink

    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
  29. def onCompleted(): T

    Permalink

    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
  30. def onHeadersReceived(responseHeaders: HttpResponseHeaders): State

    Permalink

    Called when all response’s headers has been processed.

    Called when all response’s headers has been processed.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  31. def onStatusReceived(responseStatus: HttpResponseStatus): State

    Permalink

    Called when the status line has been processed.

    Called when the status line has been processed.

    Definition Classes
    AsyncCachingHandler → AsyncHandler
  32. def onThrowable(t: Throwable): Unit

    Permalink

    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
  33. def processDisconnectedResponse(): T

    Permalink
    Attributes
    protected
  34. def processFullResponse(fullResponse: CacheableResponse): T

    Permalink
    Attributes
    protected
  35. def processNotModifiedResponse(notModifiedResponse: CacheableResponse): T

    Permalink
    Attributes
    protected
  36. def processStaleResponse(response: CacheableResponse): T

    Permalink
    Attributes
    protected
  37. def processTimeoutResponse(): Unit

    Permalink
    Attributes
    protected
  38. val requestTime: DateTime

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

    Permalink
    Definition Classes
    AnyRef
  40. val timeout: Duration

    Permalink
    Attributes
    protected
  41. lazy val timeoutResponse: CacheableResponse

    Permalink
    Attributes
    protected
  42. def toString(): String

    Permalink
    Definition Classes
    AsyncCachingHandler → AnyRef → Any
  43. final def wait(): Unit

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

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

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

Inherited from Debug

Inherited from AhcUtilities

Inherited from TimeoutResponse

Inherited from AsyncHandler[T]

Inherited from AnyRef

Inherited from Any

Ungrouped