Package org.atmosphere.websocket
Class WebSocketProcessor.WebSocketHandlerProxy
java.lang.Object
org.atmosphere.websocket.WebSocketProcessor.WebSocketHandlerProxy
- All Implemented Interfaces:
WebSocketHandler
- Enclosing interface:
WebSocketProcessor
public static final class WebSocketProcessor.WebSocketHandlerProxy
extends Object
implements WebSocketHandler
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketHandlerProxy(Class<? extends Broadcaster> broadcasterClazz, WebSocketHandler proxied) WebSocketHandlerProxy(WebSocketHandler proxied) -
Method Summary
Modifier and TypeMethodDescriptionvoidonByteMessage(WebSocket webSocket, byte[] data, int offset, int length) Invoked when a byte message is received.voidInvoked when aWebSocketis closed.voidonError(WebSocket webSocket, WebSocketProcessor.WebSocketException t) Invoked when aWebSocketproduces an error.voidInvoked when aWebSocketis opened.voidonTextMessage(WebSocket webSocket, String data) Invoked when a String message is receivedpath()proxied()
-
Constructor Details
-
WebSocketHandlerProxy
public WebSocketHandlerProxy(Class<? extends Broadcaster> broadcasterClazz, WebSocketHandler proxied) -
WebSocketHandlerProxy
-
-
Method Details
-
path
-
path
-
proxied
-
onByteMessage
public void onByteMessage(WebSocket webSocket, byte[] data, int offset, int length) throws IOException Description copied from interface:WebSocketHandlerInvoked when a byte message is received.- Specified by:
onByteMessagein interfaceWebSocketHandler- Parameters:
webSocket- aWebSocketdata-offset-length-- Throws:
IOException
-
onTextMessage
Description copied from interface:WebSocketHandlerInvoked when a String message is received- Specified by:
onTextMessagein interfaceWebSocketHandler- Parameters:
webSocket- aWebSocketdata-- Throws:
IOException
-
onOpen
Description copied from interface:WebSocketHandlerInvoked when aWebSocketis opened.- Specified by:
onOpenin interfaceWebSocketHandler- Parameters:
webSocket-- Throws:
IOException
-
onClose
Description copied from interface:WebSocketHandlerInvoked when aWebSocketis closed.- Specified by:
onClosein interfaceWebSocketHandler- Parameters:
webSocket-
-
onError
Description copied from interface:WebSocketHandlerInvoked when aWebSocketproduces an error.- Specified by:
onErrorin interfaceWebSocketHandler- Parameters:
webSocket-
-