Skip to content

Commit 8918a77

Browse files
committed
Polishing
See gh-32097
1 parent 0a60c62 commit 8918a77

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

spring-web/src/testFixtures/java/org/springframework/web/testfixture/http/server/reactive/bootstrap/JettyCoreHttpServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/JettyWebSocketClient.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,14 +39,29 @@
3939
import org.springframework.web.reactive.socket.adapter.JettyWebSocketHandlerAdapter;
4040
import org.springframework.web.reactive.socket.adapter.JettyWebSocketSession;
4141

42+
/**
43+
* A {@link WebSocketClient} implementation for use with Jetty 12
44+
* {@link org.eclipse.jetty.websocket.client.WebSocketClient}.
45+
*
46+
* @author Lachlan Roberts
47+
* @since 6.2
48+
*/
4249
public class JettyWebSocketClient implements WebSocketClient, Lifecycle {
4350

4451
private final org.eclipse.jetty.websocket.client.WebSocketClient client;
4552

53+
/**
54+
* Default constructor that creates and manages an instance of a Jetty
55+
* {@link org.eclipse.jetty.websocket.client.WebSocketClient WebSocketClient}.
56+
*/
4657
public JettyWebSocketClient() {
4758
this(new org.eclipse.jetty.websocket.client.WebSocketClient());
4859
}
4960

61+
/**
62+
* Constructor that accepts an existing instance of a Jetty
63+
* {@link org.eclipse.jetty.websocket.client.WebSocketClient WebSocketClient}.
64+
*/
5065
public JettyWebSocketClient(org.eclipse.jetty.websocket.client.WebSocketClient client) {
5166
this.client = client;
5267
}

spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/upgrade/JettyCoreRequestUpgradeStrategy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -48,6 +48,7 @@
4848
* A WebSocket {@code RequestUpgradeStrategy} for Jetty 12 Core.
4949
*
5050
* @author Rossen Stoyanchev
51+
* @author Greg Wilkins
5152
* @since 5.3.4
5253
*/
5354
public class JettyCoreRequestUpgradeStrategy implements RequestUpgradeStrategy {

0 commit comments

Comments
 (0)