T
- the result typepublic interface UpgradeHandler<T>
AsyncHandler.State.UPGRADE
is returned. Currently the
library only support WebSocket
as type.Modifier and Type | Method and Description |
---|---|
void |
onFailure(java.lang.Throwable t)
If the upgrade fail.
|
void |
onSuccess(T t)
If the HTTP Upgrade succeed (response's status code equals 101), the
AsyncHttpClient will invoke that method. |
void onSuccess(T t)
AsyncHttpClient
will invoke that method.t
- an Upgradable entityvoid onFailure(java.lang.Throwable t)
t
- a Throwable
Copyright © 2018. All Rights Reserved.