Skip to content

Commit

Permalink
Build with Java 22-23ea
Browse files Browse the repository at this point in the history
Jetty 12 and libraries update
  • Loading branch information
nhenneaux committed Mar 29, 2024
1 parent 4c8b8ad commit 094322b
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
package com.github.nhenneaux.jersey.connector.httpclient;

import org.eclipse.jetty.alpn.server.ALPNServerConnectionFactory;
import org.eclipse.jetty.ee10.servlet.ServletContextHandler;
import org.eclipse.jetty.ee10.servlet.ServletHolder;
import org.eclipse.jetty.http.HttpVersion;
import org.eclipse.jetty.http2.server.HTTP2ServerConnectionFactory;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.SecureRequestCustomizer;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.SslConnectionFactory;
import org.eclipse.jetty.server.*;
import org.eclipse.jetty.server.handler.ContextHandlerCollection;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
import org.eclipse.jetty.util.MultiException;
import org.eclipse.jetty.util.ExceptionUtil;
import org.eclipse.jetty.util.ssl.SslContextFactory;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.servlet.ServletContainer;
Expand Down Expand Up @@ -53,7 +47,7 @@ public class JettyServer implements AutoCloseable {
http2Connector.setPort(port);
server.addConnector(http2Connector);

ServletContextHandler context = new ServletContextHandler(server,"/");
ServletContextHandler context = new ServletContextHandler("/");
contexts.addHandler(context);
final ResourceConfig resourceConfig = new ResourceConfig();
for (Class<?> serviceClass : serviceClasses) {
Expand All @@ -70,7 +64,7 @@ public class JettyServer implements AutoCloseable {
try {
close();
} catch (RuntimeException closeException) {
MultiException multiException = new MultiException();
ExceptionUtil.MultiException multiException = new ExceptionUtil.MultiException();
multiException.add(e);
multiException.add(closeException);
multiException.ifExceptionThrowRuntime();
Expand Down

0 comments on commit 094322b

Please sign in to comment.