|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.client.websocket.WebSocketUpgradeHandler
org.atmosphere.wasync.transport.WebSocketTransport
public class WebSocketTransport
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.ning.http.client.websocket.WebSocketUpgradeHandler |
|---|
com.ning.http.client.websocket.WebSocketUpgradeHandler.Builder |
| Nested classes/interfaces inherited from interface com.ning.http.client.AsyncHandler |
|---|
com.ning.http.client.AsyncHandler.STATE |
| Constructor Summary | |
|---|---|
WebSocketTransport(Options options,
List<Decoder<?,?>> decoders,
List<FunctionWrapper> functions,
FunctionResolver resolver)
|
|
| Method Summary | |
|---|---|
boolean |
canHandle(Request request)
Return true if the transport can handle the request. |
void |
close()
Close the underlying transport} |
Transport |
future(Future f)
The current Socket's Future |
Request.TRANSPORT |
name()
The transport name |
com.ning.http.client.AsyncHandler.STATE |
onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
|
com.ning.http.client.websocket.WebSocket |
onCompleted()
|
void |
onFailure(Throwable t)
|
com.ning.http.client.AsyncHandler.STATE |
onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
|
com.ning.http.client.AsyncHandler.STATE |
onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
|
void |
onSuccess(com.ning.http.client.websocket.WebSocket webSocket)
|
void |
onThrowable(Throwable t)
Called when an unexpected exception ocurred. |
Transport |
registerF(FunctionWrapper function)
Register a new FunctionResolver |
| Methods inherited from class com.ning.http.client.websocket.WebSocketUpgradeHandler |
|---|
onClose |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketTransport(Options options,
List<Decoder<?,?>> decoders,
List<FunctionWrapper> functions,
FunctionResolver resolver)
| Method Detail |
|---|
public void onThrowable(Throwable t)
onThrowable in interface com.ning.http.client.AsyncHandler<com.ning.http.client.websocket.WebSocket>onThrowable in interface TransportonThrowable in class com.ning.http.client.websocket.WebSocketUpgradeHandlert - a Throwablepublic void close()
Transport
close in interface Transportpublic boolean canHandle(Request request)
Transport
canHandle in interface Transportrequest - Request
public com.ning.http.client.AsyncHandler.STATE onBodyPartReceived(com.ning.http.client.HttpResponseBodyPart bodyPart)
throws Exception
onBodyPartReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.websocket.WebSocket>onBodyPartReceived in class com.ning.http.client.websocket.WebSocketUpgradeHandlerException
public com.ning.http.client.AsyncHandler.STATE onStatusReceived(com.ning.http.client.HttpResponseStatus responseStatus)
throws Exception
onStatusReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.websocket.WebSocket>onStatusReceived in class com.ning.http.client.websocket.WebSocketUpgradeHandlerException
public com.ning.http.client.AsyncHandler.STATE onHeadersReceived(com.ning.http.client.HttpResponseHeaders headers)
throws Exception
onHeadersReceived in interface com.ning.http.client.AsyncHandler<com.ning.http.client.websocket.WebSocket>onHeadersReceived in class com.ning.http.client.websocket.WebSocketUpgradeHandlerException
public com.ning.http.client.websocket.WebSocket onCompleted()
throws Exception
onCompleted in interface com.ning.http.client.AsyncHandler<com.ning.http.client.websocket.WebSocket>onCompleted in class com.ning.http.client.websocket.WebSocketUpgradeHandlerExceptionpublic void onSuccess(com.ning.http.client.websocket.WebSocket webSocket)
onSuccess in interface com.ning.http.client.UpgradeHandler<com.ning.http.client.websocket.WebSocket>onSuccess in class com.ning.http.client.websocket.WebSocketUpgradeHandlerpublic Request.TRANSPORT name()
Transport
name in interface Transportpublic Transport future(Future f)
TransportSocket's Future
future in interface Transportpublic Transport registerF(FunctionWrapper function)
TransportFunctionResolver
registerF in interface Transportfunction - FunctionResolver
public final void onFailure(Throwable t)
onFailure in interface com.ning.http.client.UpgradeHandler<com.ning.http.client.websocket.WebSocket>onFailure in class com.ning.http.client.websocket.WebSocketUpgradeHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||