Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbasle committed Jul 8, 2024
1 parent 0a60c62 commit 8918a77
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -39,14 +39,29 @@
import org.springframework.web.reactive.socket.adapter.JettyWebSocketHandlerAdapter;
import org.springframework.web.reactive.socket.adapter.JettyWebSocketSession;

/**
* A {@link WebSocketClient} implementation for use with Jetty 12
* {@link org.eclipse.jetty.websocket.client.WebSocketClient}.
*
* @author Lachlan Roberts
* @since 6.2
*/
public class JettyWebSocketClient implements WebSocketClient, Lifecycle {

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

/**
* Default constructor that creates and manages an instance of a Jetty
* {@link org.eclipse.jetty.websocket.client.WebSocketClient WebSocketClient}.
*/
public JettyWebSocketClient() {
this(new org.eclipse.jetty.websocket.client.WebSocketClient());
}

/**
* Constructor that accepts an existing instance of a Jetty
* {@link org.eclipse.jetty.websocket.client.WebSocketClient WebSocketClient}.
*/
public JettyWebSocketClient(org.eclipse.jetty.websocket.client.WebSocketClient client) {
this.client = client;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -48,6 +48,7 @@
* A WebSocket {@code RequestUpgradeStrategy} for Jetty 12 Core.
*
* @author Rossen Stoyanchev
* @author Greg Wilkins
* @since 5.3.4
*/
public class JettyCoreRequestUpgradeStrategy implements RequestUpgradeStrategy {
Expand Down

0 comments on commit 8918a77

Please sign in to comment.