From 814e4af6a5b0f2523296bd2eb4e00a46c70493c6 Mon Sep 17 00:00:00 2001 From: Brad Wood Date: Fri, 11 Oct 2024 00:50:46 -0500 Subject: [PATCH] Add some imports --- .../java/runwar/undertow/WebsocketHandler.java | 16 ++++++++++------ .../undertow/WebsocketReceiveListener.java | 2 ++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/runwar/undertow/WebsocketHandler.java b/src/main/java/runwar/undertow/WebsocketHandler.java index 7ded1ed..4ab09db 100644 --- a/src/main/java/runwar/undertow/WebsocketHandler.java +++ b/src/main/java/runwar/undertow/WebsocketHandler.java @@ -1,17 +1,21 @@ package runwar.undertow; -import static runwar.logging.RunwarLogger.LOG; +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; import io.undertow.websockets.core.WebSockets; import io.undertow.io.Sender; import io.undertow.server.HttpHandler; -import io.undertow.server.HttpServerExchange; -import io.undertow.util.Headers; -import io.undertow.util.StatusCodes; +import io.undertow.server.handlers.PathHandler; import io.undertow.websockets.WebSocketConnectionCallback; -import io.undertow.websockets.core.AbstractReceiveListener; -import io.undertow.websockets.core.BufferedTextMessage; +import io.undertow.websockets.WebSocketProtocolHandshakeHandler; import io.undertow.websockets.core.WebSocketChannel; +import io.undertow.websockets.core.WebSockets; +import io.undertow.websockets.core.protocol.Handshake; +import io.undertow.websockets.core.protocol.version07.Hybi07Handshake; +import io.undertow.websockets.core.protocol.version08.Hybi08Handshake; +import io.undertow.websockets.core.protocol.version13.Hybi13Handshake; import io.undertow.websockets.spi.WebSocketHttpExchange; import io.undertow.attribute.ExchangeAttributes; import io.undertow.server.DefaultResponseListener; diff --git a/src/main/java/runwar/undertow/WebsocketReceiveListener.java b/src/main/java/runwar/undertow/WebsocketReceiveListener.java index bded81f..f8c49b8 100644 --- a/src/main/java/runwar/undertow/WebsocketReceiveListener.java +++ b/src/main/java/runwar/undertow/WebsocketReceiveListener.java @@ -26,6 +26,7 @@ import org.xnio.Option; import org.xnio.OptionMap; import org.xnio.Pool; +import org.xnio.Pooled; import org.xnio.StreamConnection; import org.xnio.XnioIoThread; import org.xnio.XnioWorker; @@ -55,6 +56,7 @@ import io.undertow.util.BadRequestException; import io.undertow.util.ParameterLimitException; import io.undertow.websockets.core.AbstractReceiveListener; +import io.undertow.websockets.core.BufferedBinaryMessage; import io.undertow.websockets.core.BufferedTextMessage; import io.undertow.websockets.core.WebSocketChannel; import runwar.Server;