Class UnisonReceiveListener
java.lang.Object
io.undertow.websockets.core.AbstractReceiveListener
com.tremolosecurity.proxy.undertow.UnisonReceiveListener
- All Implemented Interfaces:
EventListener,org.xnio.ChannelListener<io.undertow.websockets.core.WebSocketChannel>
public class UnisonReceiveListener
extends io.undertow.websockets.core.AbstractReceiveListener
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnisonReceiveListener(String url, HttpFilterRequest request, jakarta.servlet.http.HttpServletResponse resp, UnisonWebSocketClientNegotiation clientNegotiation) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeFromCallback(io.undertow.websockets.spi.WebSocketHttpExchange exchange, io.undertow.websockets.core.WebSocketChannel channel) protected voidonBinary(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) protected voidonClose(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel channel) protected voidonCloseMessage(io.undertow.websockets.core.CloseMessage cm, io.undertow.websockets.core.WebSocketChannel channel) protected voidprotected voidonFullBinaryMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) protected voidonFullCloseMessage(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) protected voidonPing(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel channel) protected voidonPong(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) protected voidonText(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) voidMethods inherited from class io.undertow.websockets.core.AbstractReceiveListener
bufferFullMessage, getMaxBinaryBufferSize, getMaxCloseBufferSize, getMaxPingBufferSize, getMaxPongBufferSize, getMaxTextBufferSize, handleEvent
-
Field Details
-
charset
-
decoder
-
-
Constructor Details
-
UnisonReceiveListener
public UnisonReceiveListener(String url, HttpFilterRequest request, jakarta.servlet.http.HttpServletResponse resp, UnisonWebSocketClientNegotiation clientNegotiation) throws URISyntaxException, IllegalArgumentException, IOException
-
-
Method Details
-
initializeFromCallback
public void initializeFromCallback(io.undertow.websockets.spi.WebSocketHttpExchange exchange, io.undertow.websockets.core.WebSocketChannel channel) throws CancellationException, IOException - Throws:
CancellationExceptionIOException
-
startConnection
- Throws:
IOException
-
onPing
protected void onPing(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel channel) throws IOException - Overrides:
onPingin classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onClose
protected void onClose(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel channel) throws IOException - Overrides:
onClosein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onPong
protected void onPong(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) throws IOException - Overrides:
onPongin classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onText
protected void onText(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) throws IOException - Overrides:
onTextin classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onBinary
protected void onBinary(io.undertow.websockets.core.WebSocketChannel webSocketChannel, io.undertow.websockets.core.StreamSourceFrameChannel messageChannel) throws IOException - Overrides:
onBinaryin classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onError
- Overrides:
onErrorin classio.undertow.websockets.core.AbstractReceiveListener
-
onFullTextMessage
protected void onFullTextMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage message) throws IOException - Overrides:
onFullTextMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onFullBinaryMessage
protected void onFullBinaryMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws IOException - Overrides:
onFullBinaryMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onFullPingMessage
protected void onFullPingMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws IOException - Overrides:
onFullPingMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onFullPongMessage
protected void onFullPongMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws IOException - Overrides:
onFullPongMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onFullCloseMessage
protected void onFullCloseMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedBinaryMessage message) throws IOException - Overrides:
onFullCloseMessagein classio.undertow.websockets.core.AbstractReceiveListener- Throws:
IOException
-
onCloseMessage
protected void onCloseMessage(io.undertow.websockets.core.CloseMessage cm, io.undertow.websockets.core.WebSocketChannel channel) - Overrides:
onCloseMessagein classio.undertow.websockets.core.AbstractReceiveListener
-