From 11d14a65b44877c69eaefb86bd1fac7bebe86d1b Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Tue, 12 May 2020 15:10:44 +1000 Subject: [PATCH 1/3] Issue #2173 & #2174 - Split websocket-core into client/server/common modules Signed-off-by: Lachlan Roberts --- jetty-bom/pom.xml | 12 ++- .../eclipse/jetty/osgi/test/TestOSGiUtil.java | 18 +--- jetty-websocket/pom.xml | 11 ++- jetty-websocket/websocket-core-client/pom.xml | 82 ++++++++++++++++++ .../src/main/config/modules/websocket.mod | 0 .../src/main/java/module-info.java | 29 +++++++ .../core/client/ClientUpgradeRequest.java | 4 +- .../core/client/HttpClientProvider.java | 0 .../core/client/HttpUpgraderOverHTTP.java | 0 .../core/client/HttpUpgraderOverHTTP2.java | 0 .../core/client/UpgradeListener.java | 0 .../core/client/WebSocketCoreClient.java | 2 +- .../core/client/XmlHttpClientProvider.java | 0 jetty-websocket/websocket-core-common/pom.xml | 80 +++++++++++++++++ .../src/main/config/modules/websocket.mod | 11 +++ .../src/main/java/module-info.java | 14 +-- .../websocket/core/AbstractExtension.java | 0 .../jetty/websocket/core/Behavior.java | 0 .../jetty/websocket/core/CloseStatus.java | 11 +-- .../jetty/websocket/core/Configuration.java | 0 .../jetty/websocket/core/CoreSession.java | 0 .../jetty/websocket/core/Extension.java | 0 .../jetty/websocket/core/ExtensionConfig.java | 4 +- .../eclipse/jetty/websocket/core/Frame.java | 6 +- .../jetty/websocket/core/FrameHandler.java | 10 +-- .../jetty/websocket/core/IncomingFrames.java | 0 .../jetty/websocket/core/MessageHandler.java | 0 .../eclipse/jetty/websocket/core/OpCode.java | 0 .../jetty/websocket/core/OutgoingFrames.java | 0 .../websocket/core/WebSocketComponents.java | 29 ++----- .../websocket/core/WebSocketConstants.java | 0 .../core/WebSocketExtensionRegistry.java | 2 +- .../core/exception/BadPayloadException.java | 0 .../core/exception/CloseException.java | 2 +- .../exception/MessageTooLargeException.java | 0 .../core/exception/ProtocolException.java | 0 .../core/exception/UpgradeException.java | 0 .../core/exception/WebSocketException.java | 0 .../exception/WebSocketTimeoutException.java | 0 .../WebSocketWriteTimeoutException.java | 0 .../core/internal/ExtensionStack.java | 2 +- .../core/internal/FragmentExtension.java | 0 .../core/internal/FragmentingFlusher.java | 0 .../core/internal/FrameCaptureExtension.java | 4 +- .../websocket/core/internal/FrameEntry.java | 0 .../websocket/core/internal/FrameFlusher.java | 2 +- .../core/internal/FrameSequence.java | 0 .../websocket/core/internal/Generator.java | 0 .../core/internal/IdentityExtension.java | 0 .../websocket/core/internal/Negotiated.java | 0 .../core/internal/NullAppendable.java | 0 .../jetty/websocket/core/internal/Parser.java | 0 .../internal/PerMessageDeflateExtension.java | 0 .../core/internal/TransformingFlusher.java | 0 .../core/internal/ValidationExtension.java | 0 .../core/internal/WebSocketConnection.java | 4 +- .../core/internal/WebSocketCore.java | 0 .../core/internal/WebSocketCoreSession.java | 24 ++--- .../core/internal/WebSocketSessionState.java | 0 ...org.eclipse.jetty.websocket.core.Extension | 0 jetty-websocket/websocket-core-server/pom.xml | 76 ++++++++++++++++ .../src/main/config/modules/websocket.mod | 11 +++ .../src/main/java/module-info.java | 26 ++++++ .../websocket/core/server/Handshaker.java | 0 .../websocket/core/server/Negotiation.java | 0 .../core/server/WebSocketNegotiator.java | 0 .../server/WebSocketServerComponents.java | 51 +++++++++++ .../core/server/WebSocketUpgradeHandler.java | 0 .../server/internal/AbstractHandshaker.java | 18 +++- .../server/internal/HandshakerSelector.java | 0 .../server/internal/RFC6455Handshaker.java | 0 .../server/internal/RFC6455Negotiation.java | 0 .../server/internal/RFC8441Handshaker.java | 0 .../server/internal/RFC8441Negotiation.java | 0 .../fuzzingclient.json | 0 .../fuzzingserver.json | 0 .../pom.xml | 44 ++-------- .../jetty/websocket/core/AcceptHashTest.java | 0 .../websocket/core/AutoFragmentTest.java | 0 .../websocket/core/CapturedHexPayloads.java | 2 +- .../jetty/websocket/core/CloseStatusTest.java | 0 .../websocket/core/EchoFrameHandler.java | 0 .../jetty/websocket/core/FlushTest.java | 4 +- .../jetty/websocket/core/FrameBufferTest.java | 4 +- .../core/GeneratorFrameFlagsTest.java | 2 +- .../core/GeneratorParserRoundTripTest.java | 2 +- .../jetty/websocket/core/GeneratorTest.java | 6 +- .../websocket/core/IncomingFramesCapture.java | 0 .../websocket/core/MessageHandlerTest.java | 2 +- .../jetty/websocket/core/OpCodeTest.java | 0 .../websocket/core/OutgoingFramesCapture.java | 0 .../core/OutgoingNetworkBytesCapture.java | 2 +- .../core/ParsePayloadLengthTest.java | 0 .../core/ParserBadCloseStatusCodesTest.java | 2 +- .../websocket/core/ParserBadOpCodesTest.java | 2 +- .../jetty/websocket/core/ParserCapture.java | 0 .../core/ParserGoodCloseStatusCodesTest.java | 0 .../websocket/core/ParserReservedBitTest.java | 0 .../jetty/websocket/core/ParserTest.java | 0 .../jetty/websocket/core/RawFrameBuilder.java | 0 .../core/SynchronousFrameHandler.java | 0 .../websocket/core/TestAsyncFrameHandler.java | 0 .../websocket/core/TestFrameHandler.java | 0 .../websocket/core/TestMessageHandler.java | 0 .../websocket/core/TestUpgradeHandler.java | 0 .../core/TestWebSocketNegotiator.java | 0 .../core/TestWebSocketUpgradeHandler.java | 0 .../jetty/websocket/core/Timeouts.java | 0 .../websocket/core/WebSocketCloseTest.java | 2 +- .../websocket/core/WebSocketFrameTest.java | 2 +- .../core/WebSocketNegotiationTest.java | 2 +- .../websocket/core/WebSocketOpenTest.java | 4 +- .../jetty/websocket/core/WebSocketServer.java | 0 .../jetty/websocket/core/WebSocketTester.java | 2 +- .../core/autobahn/AutobahnFrameHandler.java | 0 .../core/autobahn/CoreAutobahnClient.java | 6 +- .../core/autobahn/CoreAutobahnServer.java | 0 .../core/chat/ChatWebSocketClient.java | 8 +- .../core/chat/ChatWebSocketServer.java | 2 +- .../client/WebSocketClientServerTest.java | 2 +- .../extensions/AbstractExtensionTest.java | 0 .../core/extensions/ExtensionConfigTest.java | 0 .../core/extensions/ExtensionStackTest.java | 0 .../core/extensions/ExtensionTool.java | 8 +- .../extensions/FragmentExtensionTest.java | 0 .../extensions/IdentityExtensionTest.java | 0 .../PerMessageDeflateExtensionTest.java | 0 .../PerMessageDeflaterBufferSizeTest.java | 4 +- .../extensions/ValidationExtensionTest.java | 0 .../core/internal/FrameFlusherTest.java | 2 +- .../websocket/core/internal/MockEndpoint.java | 0 .../websocket/core/proxy/WebSocketProxy.java | 4 +- .../core/proxy/WebSocketProxyTest.java | 0 .../core/server/WebSocketServerTest.java | 2 +- .../test/resources/jetty-logging.properties | 0 .../src/test/resources/keystore.p12 | Bin .../websocket-javax-client/pom.xml | 20 ++--- .../src/main/java/module-info.java | 5 +- .../websocket-javax-common/pom.xml | 15 ++-- .../src/main/java/module-info.java | 6 +- .../websocket-javax-server/pom.xml | 5 -- .../main/config/modules/websocket-javax.mod | 4 +- .../src/main/java/module-info.java | 4 +- ...xWebSocketServletContainerInitializer.java | 13 +-- .../JavaxWebSocketServerContainer.java | 3 +- jetty-websocket/websocket-jetty-api/pom.xml | 8 -- .../websocket-jetty-client/pom.xml | 10 +-- .../src/main/java/module-info.java | 6 +- .../websocket-jetty-common/pom.xml | 29 ------- .../src/main/java/module-info.java | 5 +- .../websocket-jetty-server/pom.xml | 40 ++++----- .../main/config/modules/websocket-jetty.mod | 4 +- .../server/JettyWebSocketServerContainer.java | 3 +- .../server/JettyWebSocketServlet.java | 5 +- ...yWebSocketServletContainerInitializer.java | 3 +- jetty-websocket/websocket-util-server/pom.xml | 2 +- .../src/main/java/module-info.java | 2 +- .../util/server/WebSocketUpgradeFilter.java | 4 +- .../server/internal/WebSocketMapping.java | 5 +- jetty-websocket/websocket-util/pom.xml | 7 +- .../src/main/java/module-info.java | 4 +- 161 files changed, 566 insertions(+), 313 deletions(-) create mode 100644 jetty-websocket/websocket-core-client/pom.xml rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/config/modules/websocket.mod (100%) create mode 100644 jetty-websocket/websocket-core-client/src/main/java/module-info.java rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/ClientUpgradeRequest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/HttpClientProvider.java (100%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/HttpUpgraderOverHTTP.java (100%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/HttpUpgraderOverHTTP2.java (100%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/UpgradeListener.java (100%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/WebSocketCoreClient.java (98%) rename jetty-websocket/{websocket-core => websocket-core-client}/src/main/java/org/eclipse/jetty/websocket/core/client/XmlHttpClientProvider.java (100%) create mode 100644 jetty-websocket/websocket-core-common/pom.xml create mode 100644 jetty-websocket/websocket-core-common/src/main/config/modules/websocket.mod rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/module-info.java (78%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/AbstractExtension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/Behavior.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/CloseStatus.java (96%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/Configuration.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/CoreSession.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/Extension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/ExtensionConfig.java (98%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/Frame.java (99%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/FrameHandler.java (93%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/IncomingFrames.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/MessageHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/OpCode.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/OutgoingFrames.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/WebSocketComponents.java (71%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/WebSocketConstants.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/WebSocketExtensionRegistry.java (96%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/BadPayloadException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/CloseException.java (97%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/MessageTooLargeException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/ProtocolException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/UpgradeException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/WebSocketException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/WebSocketTimeoutException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/exception/WebSocketWriteTimeoutException.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/ExtensionStack.java (99%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FragmentExtension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FragmentingFlusher.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FrameCaptureExtension.java (97%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FrameEntry.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FrameFlusher.java (99%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/FrameSequence.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/Generator.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/IdentityExtension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/Negotiated.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/NullAppendable.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/Parser.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/PerMessageDeflateExtension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/TransformingFlusher.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/ValidationExtension.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/WebSocketConnection.java (99%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/WebSocketCore.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/WebSocketCoreSession.java (97%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/java/org/eclipse/jetty/websocket/core/internal/WebSocketSessionState.java (100%) rename jetty-websocket/{websocket-core => websocket-core-common}/src/main/resources/META-INF/services/org.eclipse.jetty.websocket.core.Extension (100%) create mode 100644 jetty-websocket/websocket-core-server/pom.xml create mode 100644 jetty-websocket/websocket-core-server/src/main/config/modules/websocket.mod create mode 100644 jetty-websocket/websocket-core-server/src/main/java/module-info.java rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/Handshaker.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/Negotiation.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/WebSocketNegotiator.java (100%) create mode 100644 jetty-websocket/websocket-core-server/src/main/java/org/eclipse/jetty/websocket/core/server/WebSocketServerComponents.java rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/WebSocketUpgradeHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/AbstractHandshaker.java (93%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/HandshakerSelector.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/RFC6455Handshaker.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/RFC6455Negotiation.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/RFC8441Handshaker.java (100%) rename jetty-websocket/{websocket-core => websocket-core-server}/src/main/java/org/eclipse/jetty/websocket/core/server/internal/RFC8441Negotiation.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/fuzzingclient.json (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/fuzzingserver.json (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/pom.xml (77%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/AcceptHashTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/AutoFragmentTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/CapturedHexPayloads.java (95%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/CloseStatusTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/EchoFrameHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/FlushTest.java (97%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/FrameBufferTest.java (96%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/GeneratorFrameFlagsTest.java (97%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/GeneratorParserRoundTripTest.java (97%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/GeneratorTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/IncomingFramesCapture.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/MessageHandlerTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/OpCodeTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/OutgoingFramesCapture.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/OutgoingNetworkBytesCapture.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParsePayloadLengthTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserBadCloseStatusCodesTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserBadOpCodesTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserCapture.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserGoodCloseStatusCodesTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserReservedBitTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/ParserTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/RawFrameBuilder.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/SynchronousFrameHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestAsyncFrameHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestFrameHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestMessageHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestUpgradeHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestWebSocketNegotiator.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/TestWebSocketUpgradeHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/Timeouts.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketCloseTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketFrameTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketNegotiationTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketOpenTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketServer.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/WebSocketTester.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/autobahn/AutobahnFrameHandler.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/autobahn/CoreAutobahnClient.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/autobahn/CoreAutobahnServer.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/chat/ChatWebSocketClient.java (95%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/chat/ChatWebSocketServer.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/client/WebSocketClientServerTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/AbstractExtensionTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/ExtensionConfigTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/ExtensionStackTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/ExtensionTool.java (97%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/FragmentExtensionTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/IdentityExtensionTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/PerMessageDeflateExtensionTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/PerMessageDeflaterBufferSizeTest.java (98%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/extensions/ValidationExtensionTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/internal/FrameFlusherTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/internal/MockEndpoint.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/proxy/WebSocketProxy.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/proxy/WebSocketProxyTest.java (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/java/org/eclipse/jetty/websocket/core/server/WebSocketServerTest.java (99%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/resources/jetty-logging.properties (100%) rename jetty-websocket/{websocket-core => websocket-core-tests}/src/test/resources/keystore.p12 (100%) diff --git a/jetty-bom/pom.xml b/jetty-bom/pom.xml index 0a9c50a7b594..29eb56448e45 100644 --- a/jetty-bom/pom.xml +++ b/jetty-bom/pom.xml @@ -381,7 +381,17 @@ org.eclipse.jetty.websocket - websocket-core + websocket-core-common + 10.0.0-SNAPSHOT + + + org.eclipse.jetty.websocket + websocket-core-client + 10.0.0-SNAPSHOT + + + org.eclipse.jetty.websocket + websocket-core-server 10.0.0-SNAPSHOT diff --git a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestOSGiUtil.java b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestOSGiUtil.java index 15aaaa512e58..961ff63ec53b 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestOSGiUtil.java +++ b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestOSGiUtil.java @@ -19,21 +19,11 @@ package org.eclipse.jetty.osgi.test; import java.io.File; -import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import org.eclipse.jetty.client.HttpClient; -import org.eclipse.jetty.client.api.ContentResponse; -import org.eclipse.jetty.client.http.HttpClientTransportOverHTTP; -import org.eclipse.jetty.http.HttpStatus; -import org.eclipse.jetty.io.ClientConnector; import org.eclipse.jetty.osgi.boot.OSGiServerConstants; import org.eclipse.jetty.toolchain.test.FS; import org.eclipse.jetty.util.StringUtil; @@ -43,16 +33,12 @@ import org.ops4j.pax.exam.options.WrappedUrlProvisionOption.OverwriteMode; import org.ops4j.pax.tinybundles.core.TinyBundle; import org.ops4j.pax.tinybundles.core.TinyBundles; -import org.ops4j.pax.url.mvn.internal.AetherBasedResolver; import org.osgi.framework.Bundle; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.Constants; import org.osgi.framework.ServiceReference; -import org.osgi.service.http.HttpService; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.ops4j.pax.exam.CoreOptions.mavenBundle; @@ -195,7 +181,9 @@ public static List