AsyncCachingHandler

play.api.libs.ws.ahc.cache.AsyncCachingHandler
See theAsyncCachingHandler companion object
class AsyncCachingHandler[T](request: Request, handler: AsyncCompletionHandler[T], cache: AhcHttpCache, maybeAction: Option[ResponseServeAction], ahcConfig: AsyncHttpClientConfig) extends AsyncHandler[T], TimeoutResponse

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

Attributes

Companion
object
Graph
Supertypes
trait AhcUtilities
trait AsyncHandler[T]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def onBodyPartReceived(bodyPart: HttpResponseBodyPart): State

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

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

Attributes

Definition Classes
AsyncHandler
override 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).

Attributes

Definition Classes
AsyncHandler
override def onHeadersReceived(responseHeaders: HttpHeaders): State

Called when all response’s headers has been processed.

Called when all response’s headers has been processed.

Attributes

Definition Classes
AsyncHandler
override def onStatusReceived(responseStatus: HttpResponseStatus): State

Called when the status line has been processed.

Called when the status line has been processed.

Attributes

Definition Classes
AsyncHandler
override 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.

Attributes

Definition Classes
AsyncHandler
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def debug(bodyPart: HttpResponseBodyPart): String

Attributes

Inherited from:
Debug (hidden)
def debug[T](ctx: FilterContext[T]): String

Attributes

Inherited from:
Debug (hidden)
def debug[T](handler: AsyncHandler[T]): String

Attributes

Inherited from:
Debug (hidden)
def debug(bodyParts: List[HttpResponseBodyPart]): String

Attributes

Inherited from:
Debug (hidden)
def debug(responseHeaders: HttpHeaders): String

Attributes

Inherited from:
Debug (hidden)
def debug(responseStatus: HttpResponseStatus): String

Attributes

Inherited from:
Debug (hidden)
def debug(response: Response): String

Attributes

Inherited from:
Debug (hidden)
def debug(request: Request): String

Attributes

Inherited from:
Debug (hidden)
def debug(cfg: AsyncHttpClientConfig): String

Attributes

Inherited from:
Debug (hidden)
def generateTimeoutResponse(request: Request, ahcConfig: AsyncHttpClientConfig): CacheableResponse

Attributes

Inherited from:
TimeoutResponse
def headersToMap(headers: HttpHeaders): TreeMap[String, Seq[String]]

Attributes

Inherited from:
AhcUtilities
def onConnectionOffer(x$0: Channel): Unit

Attributes

Inherited from:
AsyncHandler

Attributes

Inherited from:
AsyncHandler
def onConnectionPooled(x$0: Channel): Unit

Attributes

Inherited from:
AsyncHandler
def onHostnameResolutionAttempt(x$0: String): Unit

Attributes

Inherited from:
AsyncHandler
def onHostnameResolutionFailure(x$0: String, x$1: Throwable): Unit

Attributes

Inherited from:
AsyncHandler
def onHostnameResolutionSuccess(x$0: String, x$1: List[InetSocketAddress]): Unit

Attributes

Inherited from:
AsyncHandler
def onRequestSend(x$0: NettyRequest): Unit

Attributes

Inherited from:
AsyncHandler
def onRetry(): Unit

Attributes

Inherited from:
AsyncHandler
def onTcpConnectAttempt(x$0: InetSocketAddress): Unit

Attributes

Inherited from:
AsyncHandler
def onTcpConnectFailure(x$0: InetSocketAddress, x$1: Throwable): Unit

Attributes

Inherited from:
AsyncHandler
def onTcpConnectSuccess(x$0: InetSocketAddress, x$1: Channel): Unit

Attributes

Inherited from:
AsyncHandler
def onTlsHandshakeAttempt(): Unit

Attributes

Inherited from:
AsyncHandler
def onTlsHandshakeFailure(x$0: Throwable): Unit

Attributes

Inherited from:
AsyncHandler
def onTlsHandshakeSuccess(x$0: SSLSession): Unit

Attributes

Inherited from:
AsyncHandler
def onTrailingHeadersReceived(x$0: HttpHeaders): State

Attributes

Inherited from:
AsyncHandler