diff --git a/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java b/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java index 29c8322f6ca0..d60682736a63 100644 --- a/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java +++ b/jetty-websocket/websocket-jetty-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java @@ -77,7 +77,13 @@ public WebSocketClient() } /** - * Instantiate a WebSocketClient using HttpClient for defaults + *
+ * Instantiate a WebSocketClient. + *
+ * + *+ * HTTP behaviors of the WebSocket upgrade are taken from the HttpClient configuration. + *
* * @param httpClient the HttpClient to base internal defaults off of */ @@ -95,10 +101,17 @@ public WebSocketClient(HttpClient httpClient) } /** - * Instantiate a WebSocketClient using HttpClient for defaults + *+ * Instantiate a WebSocketClient. + *
* - * @param httpClient the HttpClient to base internal defaults off of - * @param webSocketComponents the configured WebSocketComponents to use + *+ * HTTP behaviors of the WebSocket upgrade are taken from the {@link HttpClient} configuration. + * WebSocket behaviors are taken from the {@link WebSocketComponents} configuration. + *
+ * + * @param httpClient the HttpClient to use for the HTTP behaviors of WebSocket upgrade + * @param webSocketComponents the WebSocketComponents to use for WebSocket behaviors */ public WebSocketClient(HttpClient httpClient, WebSocketComponents webSocketComponents) {