public interface

UpgradeHandler

com.ning.http.client.UpgradeHandler<T>
Known Indirect Subclasses

Class Overview

Invoked when an UPGRADE is returned. Currently the library only support WebSocket as type.

Summary

Public Methods
abstract void onFailure(Throwable t)
If the upgrade fail.
abstract void onSuccess(T t)
If the HTTP Upgrade succeed (response's status code equals 101), the AsyncHttpProvider will invoke that method

Public Methods

public abstract void onFailure (Throwable t)

If the upgrade fail.

Parameters
t a Throwable

public abstract void onSuccess (T t)

If the HTTP Upgrade succeed (response's status code equals 101), the AsyncHttpProvider will invoke that method

Parameters
t an Upgradable entity