Package io.joshworks.stream.client.ws
Class ProxyClientEndpoint
- java.lang.Object
-
- io.undertow.websockets.core.AbstractReceiveListener
-
- io.joshworks.stream.client.ws.ProxyClientEndpoint
-
- All Implemented Interfaces:
java.util.EventListener,org.xnio.ChannelListener<io.undertow.websockets.core.WebSocketChannel>
public class ProxyClientEndpoint extends io.undertow.websockets.core.AbstractReceiveListenerCreated by josh on 3/8/17. Internal use only, delegates to parent class to free consume bytes and so on
-
-
Constructor Summary
Constructors Constructor Description ProxyClientEndpoint(WebSocketClientEndpoint endpoint)
-
Method Summary
Modifier and Type Method Description protected voidonCloseMessage(io.undertow.websockets.core.CloseMessage cm, io.undertow.websockets.core.WebSocketChannel channel)voidonConnect(io.undertow.websockets.core.WebSocketChannel channel)protected voidonError(io.undertow.websockets.core.WebSocketChannel channel, java.lang.Throwable error)protected voidonFullBinaryMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)protected voidonFullPingMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)protected voidonFullPongMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message)protected voidonFullTextMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message)
-
-
-
Constructor Detail
-
ProxyClientEndpoint
public ProxyClientEndpoint(WebSocketClientEndpoint endpoint)
-
-
Method Detail
-
onConnect
public void onConnect(io.undertow.websockets.core.WebSocketChannel channel)
-
onFullTextMessage
protected void onFullTextMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message) throws java.io.IOException- Overrides:
onFullTextMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
java.io.IOException
-
onFullBinaryMessage
protected void onFullBinaryMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws java.io.IOException- Overrides:
onFullBinaryMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
java.io.IOException
-
onFullPingMessage
protected void onFullPingMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws java.io.IOException- Overrides:
onFullPingMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
java.io.IOException
-
onFullPongMessage
protected void onFullPongMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws java.io.IOException- Overrides:
onFullPongMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
java.io.IOException
-
onCloseMessage
protected void onCloseMessage(io.undertow.websockets.core.CloseMessage cm, io.undertow.websockets.core.WebSocketChannel channel)- Overrides:
onCloseMessagein classio.undertow.websockets.core.AbstractReceiveListener
-
onError
protected void onError(io.undertow.websockets.core.WebSocketChannel channel, java.lang.Throwable error)- Overrides:
onErrorin classio.undertow.websockets.core.AbstractReceiveListener
-
-