11/*
2- * Copyright (c) 2011-2020 Contributors to the Eclipse Foundation
2+ * Copyright (c) 2011-2025 Contributors to the Eclipse Foundation
33 *
44 * This program and the accompanying materials are made available under the
55 * terms of the Eclipse Public License 2.0 which is available at
1111package io .vertx .httpproxy .impl ;
1212
1313import io .vertx .core .Future ;
14- import io .vertx .core .buffer .Buffer ;
1514import io .vertx .core .Vertx ;
16- import io .vertx .core .http .*;
15+ import io .vertx .core .buffer .Buffer ;
16+ import io .vertx .core .http .HttpClient ;
17+ import io .vertx .core .http .HttpClientRequest ;
18+ import io .vertx .core .http .HttpClientResponse ;
19+ import io .vertx .core .http .HttpHeaders ;
20+ import io .vertx .core .http .HttpServerRequest ;
21+ import io .vertx .core .http .HttpServerResponse ;
1722import io .vertx .core .internal .CloseFuture ;
1823import io .vertx .core .internal .VertxInternal ;
19- import io .vertx .core .internal .http .* ;
24+ import io .vertx .core .internal .http .HttpClientInternal ;
2025import io .vertx .core .internal .logging .Logger ;
2126import io .vertx .core .internal .logging .LoggerFactory ;
2227import io .vertx .core .net .NetSocket ;
2328import io .vertx .core .streams .ReadStream ;
24- import io .vertx .httpproxy .*;
29+ import io .vertx .httpproxy .HttpProxy ;
30+ import io .vertx .httpproxy .ProxyContext ;
31+ import io .vertx .httpproxy .ProxyInterceptor ;
32+ import io .vertx .httpproxy .ProxyOptions ;
33+ import io .vertx .httpproxy .ProxyRequest ;
34+ import io .vertx .httpproxy .ProxyResponse ;
2535import io .vertx .httpproxy .cache .CacheOptions ;
2636import io .vertx .httpproxy .spi .cache .Cache ;
2737
28- import java .util .*;
38+ import java .util .ArrayList ;
39+ import java .util .HashMap ;
40+ import java .util .List ;
41+ import java .util .ListIterator ;
42+ import java .util .Map ;
43+ import java .util .Objects ;
2944import java .util .function .BiFunction ;
3045
3146import static io .vertx .core .http .HttpHeaders .CONNECTION ;
@@ -50,7 +65,7 @@ public ReverseProxy(ProxyOptions options, HttpClient client) {
5065 }
5166
5267 public Cache newCache (CacheOptions options , Vertx vertx ) {
53- if (options .getShared ()) {
68+ if (options .isShared ()) {
5469 CloseFuture closeFuture = new CloseFuture ();
5570 return ((VertxInternal ) vertx ).createSharedResource ("__vertx.shared.proxyCache" , options .getName (), closeFuture , (cf_ ) -> {
5671 return new CacheImpl (options );
0 commit comments