some checkstyle fixes
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
5f6ab9a6a0
commit
b47904ebe2
|
@ -20,16 +20,16 @@ package org.eclipse.jetty.websocket.jakarta.server.config;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import jakarta.servlet.ServletContainerInitializer;
|
||||||
|
import jakarta.servlet.ServletContext;
|
||||||
|
import jakarta.servlet.ServletException;
|
||||||
|
import jakarta.servlet.annotation.HandlesTypes;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.Endpoint;
|
import jakarta.websocket.Endpoint;
|
||||||
import jakarta.websocket.server.ServerApplicationConfig;
|
import jakarta.websocket.server.ServerApplicationConfig;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContainerInitializer;
|
|
||||||
import jakarta.servlet.ServletContext;
|
|
||||||
import jakarta.servlet.ServletException;
|
|
||||||
import jakarta.servlet.annotation.HandlesTypes;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.servlet.FilterHolder;
|
import org.eclipse.jetty.servlet.FilterHolder;
|
||||||
import org.eclipse.jetty.servlet.ServletContextHandler;
|
import org.eclipse.jetty.servlet.ServletContextHandler;
|
||||||
|
|
|
@ -22,10 +22,10 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
import jakarta.servlet.ServletContext;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContext;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.client.HttpClient;
|
import org.eclipse.jetty.client.HttpClient;
|
||||||
import org.eclipse.jetty.http.pathmap.PathSpec;
|
import org.eclipse.jetty.http.pathmap.PathSpec;
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.server.examples;
|
package org.eclipse.jetty.websocket.jakarta.server.examples;
|
||||||
|
|
||||||
|
import jakarta.servlet.http.HttpSession;
|
||||||
import jakarta.websocket.HandshakeResponse;
|
import jakarta.websocket.HandshakeResponse;
|
||||||
import jakarta.websocket.server.HandshakeRequest;
|
import jakarta.websocket.server.HandshakeRequest;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.http.HttpSession;
|
|
||||||
|
|
||||||
public class GetHttpSessionConfigurator extends ServerEndpointConfig.Configurator
|
public class GetHttpSessionConfigurator extends ServerEndpointConfig.Configurator
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
package org.eclipse.jetty.websocket.jakarta.server.examples;
|
package org.eclipse.jetty.websocket.jakarta.server.examples;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import jakarta.servlet.http.HttpSession;
|
||||||
import jakarta.websocket.EndpointConfig;
|
import jakarta.websocket.EndpointConfig;
|
||||||
import jakarta.websocket.OnMessage;
|
import jakarta.websocket.OnMessage;
|
||||||
import jakarta.websocket.OnOpen;
|
import jakarta.websocket.OnOpen;
|
||||||
import jakarta.websocket.Session;
|
import jakarta.websocket.Session;
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import jakarta.servlet.http.HttpSession;
|
|
||||||
|
|
||||||
@ServerEndpoint(value = "/example", configurator = GetHttpSessionConfigurator.class)
|
@ServerEndpoint(value = "/example", configurator = GetHttpSessionConfigurator.class)
|
||||||
public class GetHttpSessionSocket
|
public class GetHttpSessionSocket
|
||||||
|
|
|
@ -21,10 +21,10 @@ package org.eclipse.jetty.websocket.jakarta.tests;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
import jakarta.websocket.OnMessage;
|
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.websocket.OnMessage;
|
||||||
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
|
|
||||||
import org.eclipse.jetty.http.HttpVersion;
|
import org.eclipse.jetty.http.HttpVersion;
|
||||||
import org.eclipse.jetty.http.pathmap.PathSpec;
|
import org.eclipse.jetty.http.pathmap.PathSpec;
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
package com.acme.websocket;
|
package com.acme.websocket;
|
||||||
|
|
||||||
import jakarta.websocket.DeploymentException;
|
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
|
||||||
import jakarta.servlet.ServletContextEvent;
|
import jakarta.servlet.ServletContextEvent;
|
||||||
import jakarta.servlet.ServletContextListener;
|
import jakarta.servlet.ServletContextListener;
|
||||||
|
import jakarta.websocket.DeploymentException;
|
||||||
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
|
|
||||||
public class BasicEchoEndpointConfigContextListener implements ServletContextListener
|
public class BasicEchoEndpointConfigContextListener implements ServletContextListener
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
package com.acme.websocket;
|
package com.acme.websocket;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Example of adding a server WebSocket (extending {@link jakarta.websocket.Endpoint}) programmatically via config
|
* Example of adding a server WebSocket (extending {@link jakarta.websocket.Endpoint}) programmatically via config
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
|
|
||||||
package com.acme.websocket;
|
package com.acme.websocket;
|
||||||
|
|
||||||
import jakarta.websocket.server.ServerContainer;
|
|
||||||
import jakarta.servlet.ServletContextEvent;
|
import jakarta.servlet.ServletContextEvent;
|
||||||
import jakarta.servlet.ServletContextListener;
|
import jakarta.servlet.ServletContextListener;
|
||||||
|
import jakarta.websocket.server.ServerContainer;
|
||||||
|
|
||||||
public class LargeEchoContextListener implements ServletContextListener
|
public class LargeEchoContextListener implements ServletContextListener
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,13 +18,13 @@
|
||||||
|
|
||||||
package com.acme.websocket;
|
package com.acme.websocket;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.HandshakeResponse;
|
import jakarta.websocket.HandshakeResponse;
|
||||||
import jakarta.websocket.server.HandshakeRequest;
|
import jakarta.websocket.server.HandshakeRequest;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
public class PongContextListener implements ServletContextListener
|
public class PongContextListener implements ServletContextListener
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,8 @@ package org.eclipse.jetty.websocket.jakarta.tests;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
import java.util.concurrent.LinkedBlockingQueue;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.ClientEndpoint;
|
import jakarta.websocket.ClientEndpoint;
|
||||||
import jakarta.websocket.ContainerProvider;
|
import jakarta.websocket.ContainerProvider;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
|
@ -29,8 +31,6 @@ import jakarta.websocket.Session;
|
||||||
import jakarta.websocket.WebSocketContainer;
|
import jakarta.websocket.WebSocketContainer;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.server.Server;
|
import org.eclipse.jetty.server.Server;
|
||||||
import org.eclipse.jetty.server.ServerConnector;
|
import org.eclipse.jetty.server.ServerConnector;
|
||||||
|
|
|
@ -24,14 +24,14 @@ import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
import jakarta.servlet.http.Cookie;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import jakarta.websocket.ClientEndpointConfig;
|
import jakarta.websocket.ClientEndpointConfig;
|
||||||
import jakarta.websocket.ContainerProvider;
|
import jakarta.websocket.ContainerProvider;
|
||||||
import jakarta.websocket.Endpoint;
|
import jakarta.websocket.Endpoint;
|
||||||
import jakarta.websocket.HandshakeResponse;
|
import jakarta.websocket.HandshakeResponse;
|
||||||
import jakarta.websocket.Session;
|
import jakarta.websocket.Session;
|
||||||
import jakarta.websocket.WebSocketContainer;
|
import jakarta.websocket.WebSocketContainer;
|
||||||
import jakarta.servlet.http.Cookie;
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.util.FuturePromise;
|
import org.eclipse.jetty.util.FuturePromise;
|
||||||
import org.eclipse.jetty.websocket.core.FrameHandler;
|
import org.eclipse.jetty.websocket.core.FrameHandler;
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoEndpoint;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoEndpoint;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.pong.PongMessageEndpoint;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.pong.PongMessageEndpoint;
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoSocket;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoSocket;
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
import jakarta.websocket.DeploymentException;
|
|
||||||
import jakarta.websocket.server.ServerContainer;
|
|
||||||
import jakarta.servlet.ServletContextEvent;
|
import jakarta.servlet.ServletContextEvent;
|
||||||
import jakarta.servlet.ServletContextListener;
|
import jakarta.servlet.ServletContextListener;
|
||||||
|
import jakarta.websocket.DeploymentException;
|
||||||
|
import jakarta.websocket.server.ServerContainer;
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoSocket;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.echo.BasicEchoSocket;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.idletimeout.OnOpenIdleTimeoutEndpoint;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.idletimeout.OnOpenIdleTimeoutEndpoint;
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
import jakarta.websocket.server.ServerContainer;
|
|
||||||
import jakarta.servlet.ServletContextEvent;
|
import jakarta.servlet.ServletContextEvent;
|
||||||
import jakarta.servlet.ServletContextListener;
|
import jakarta.servlet.ServletContextListener;
|
||||||
|
import jakarta.websocket.server.ServerContainer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configure the Large Text Message Size via the Container
|
* Configure the Large Text Message Size via the Container
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
|
|
||||||
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
package org.eclipse.jetty.websocket.jakarta.tests.server;
|
||||||
|
|
||||||
|
import jakarta.servlet.ServletContextEvent;
|
||||||
|
import jakarta.servlet.ServletContextListener;
|
||||||
import jakarta.websocket.DeploymentException;
|
import jakarta.websocket.DeploymentException;
|
||||||
import jakarta.websocket.HandshakeResponse;
|
import jakarta.websocket.HandshakeResponse;
|
||||||
import jakarta.websocket.server.HandshakeRequest;
|
import jakarta.websocket.server.HandshakeRequest;
|
||||||
import jakarta.websocket.server.ServerContainer;
|
import jakarta.websocket.server.ServerContainer;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig;
|
import jakarta.websocket.server.ServerEndpointConfig;
|
||||||
import jakarta.websocket.server.ServerEndpointConfig.Configurator;
|
import jakarta.websocket.server.ServerEndpointConfig.Configurator;
|
||||||
import jakarta.servlet.ServletContextEvent;
|
|
||||||
import jakarta.servlet.ServletContextListener;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.pong.PongMessageEndpoint;
|
import org.eclipse.jetty.websocket.jakarta.tests.server.sockets.pong.PongMessageEndpoint;
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,10 @@ import java.net.HttpURLConnection;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
|
import jakarta.servlet.ServletException;
|
||||||
|
import jakarta.servlet.http.HttpServlet;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import jakarta.websocket.ClientEndpoint;
|
import jakarta.websocket.ClientEndpoint;
|
||||||
import jakarta.websocket.ContainerProvider;
|
import jakarta.websocket.ContainerProvider;
|
||||||
import jakarta.websocket.EndpointConfig;
|
import jakarta.websocket.EndpointConfig;
|
||||||
|
@ -35,10 +39,6 @@ import jakarta.websocket.OnOpen;
|
||||||
import jakarta.websocket.Session;
|
import jakarta.websocket.Session;
|
||||||
import jakarta.websocket.WebSocketContainer;
|
import jakarta.websocket.WebSocketContainer;
|
||||||
import jakarta.websocket.server.ServerEndpoint;
|
import jakarta.websocket.server.ServerEndpoint;
|
||||||
import jakarta.servlet.ServletException;
|
|
||||||
import jakarta.servlet.http.HttpServlet;
|
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
|
||||||
|
|
||||||
import org.eclipse.jetty.client.HttpClient;
|
import org.eclipse.jetty.client.HttpClient;
|
||||||
import org.eclipse.jetty.server.Server;
|
import org.eclipse.jetty.server.Server;
|
||||||
|
|
Loading…
Reference in New Issue