Small additional fixes.
* Removed "since" attribute (it's commonly related to Java versions) to avoid confusion. * Avoid using getProxies() to modify the Proxy object in ProxyServletTest. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
e2e59478ce
commit
5973ce2941
|
@ -18,7 +18,6 @@ import java.util.HashSet;
|
|||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
|
||||
import org.eclipse.jetty.http.HttpScheme;
|
||||
import org.eclipse.jetty.io.ClientConnectionFactory;
|
||||
|
@ -45,7 +44,7 @@ public class ProxyConfiguration
|
|||
* @deprecated use {@link #addProxy(Proxy)} and {@link #removeProxy(Proxy)} instead
|
||||
* @return the forward proxies to use
|
||||
*/
|
||||
@Deprecated(since = "10", forRemoval = true)
|
||||
@Deprecated(forRemoval = true)
|
||||
public List<Proxy> getProxies()
|
||||
{
|
||||
return proxies;
|
||||
|
|
|
@ -731,7 +731,7 @@ public class ProxyServletTest
|
|||
startProxy(proxyServletClass);
|
||||
startClient();
|
||||
int port = serverConnector.getLocalPort();
|
||||
client.getProxyConfiguration().getProxies().get(0).getExcludedAddresses().add("127.0.0.1:" + port);
|
||||
clientProxy.getExcludedAddresses().add("127.0.0.1:" + port);
|
||||
|
||||
// Try with a proxied host
|
||||
ContentResponse response = client.newRequest("localhost", port)
|
||||
|
|
Loading…
Reference in New Issue