| java.lang.Object | |
| ↳ | com.ning.http.client.websocket.WebSocketUpgradeHandler |
An AsyncHandler which is able to execute WebSocket upgrade. Use the Builder for configuring WebSocket options.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| WebSocketUpgradeHandler.Builder | Build a WebSocketUpgradeHandler
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Invoked as soon as some response body part are received.
| |||||||||||
Invoked once the HTTP response processing is finished.
| |||||||||||
If the upgrade fail.
| |||||||||||
Invoked as soon as the HTTP headers has been received.
| |||||||||||
Invoked as soon as the HTTP status line has been received
| |||||||||||
Invoked when an unexpected exception occurs during the processing of the response.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.ning.http.client.AsyncHandler
| |||||||||||
From interface
com.ning.http.client.UpgradeHandler
| |||||||||||
Invoked as soon as some response body part are received. Could be invoked many times.
| bodyPart | response's body part. |
|---|
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.| Exception |
|---|
Invoked once the HTTP response processing is finished.
Gets always invoked as last callback method.| Exception |
|---|
If the upgrade fail.
| t | a Throwable |
|---|
Invoked as soon as the HTTP headers has been received. Can potentially be invoked more than once if a broken server sent trailing headers.
| headers | the HTTP headers. |
|---|
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.| Exception |
|---|
Invoked as soon as the HTTP status line has been received
| responseStatus | the status code and test of the response |
|---|
AsyncHandler.STATE telling to CONTINUE or ABORT the current processing.| Exception |
|---|
Invoked when an unexpected exception occurs during the processing of the response. The exception may have been produced by implementation of onXXXReceived method invocation.
| t | a Throwable |
|---|