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(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 entityCopyright © 2017. All Rights Reserved.