public class OutboundWebSocketListener
extends com.ning.http.client.ws.DefaultWebSocketListener
implements com.ning.http.client.ws.WebSocketByteFragmentListener, com.ning.http.client.ws.WebSocketTextFragmentListener, com.ning.http.client.ws.WebSocketCloseCodeReasonListener
WebSocketCallback| Constructor and Description |
|---|
OutboundWebSocketListener(String socketId,
org.mule.runtime.http.api.client.ws.WebSocketCallback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(com.ning.http.client.ws.WebSocket websocket) |
void |
onClose(com.ning.http.client.ws.WebSocket websocket,
int code,
String reason) |
void |
onError(Throwable t) |
void |
onFragment(com.ning.http.client.HttpResponseBodyPart fragment) |
void |
onMessage(byte[] message) |
void |
onMessage(String message) |
void |
onOpen(com.ning.http.client.ws.WebSocket webSocket) |
void |
setSocket(OutboundWebSocket socket) |
public OutboundWebSocketListener(String socketId, org.mule.runtime.http.api.client.ws.WebSocketCallback callback)
public void onOpen(com.ning.http.client.ws.WebSocket webSocket)
onOpen in interface com.ning.http.client.ws.WebSocketListeneronOpen in class com.ning.http.client.ws.DefaultWebSocketListenerpublic void onClose(com.ning.http.client.ws.WebSocket websocket,
int code,
String reason)
onClose in interface com.ning.http.client.ws.WebSocketCloseCodeReasonListenerpublic void onClose(com.ning.http.client.ws.WebSocket websocket)
onClose in interface com.ning.http.client.ws.WebSocketListeneronClose in class com.ning.http.client.ws.DefaultWebSocketListenerpublic void onMessage(byte[] message)
onMessage in interface com.ning.http.client.ws.WebSocketByteListeneronMessage in class com.ning.http.client.ws.DefaultWebSocketListenerpublic void onMessage(String message)
onMessage in interface com.ning.http.client.ws.WebSocketTextListeneronMessage in class com.ning.http.client.ws.DefaultWebSocketListenerpublic void onFragment(com.ning.http.client.HttpResponseBodyPart fragment)
onFragment in interface com.ning.http.client.ws.WebSocketByteFragmentListeneronFragment in interface com.ning.http.client.ws.WebSocketTextFragmentListenerpublic void onError(Throwable t)
onError in interface com.ning.http.client.ws.WebSocketListeneronError in class com.ning.http.client.ws.DefaultWebSocketListenerpublic void setSocket(OutboundWebSocket socket)
Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.