Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-01-01 15:18:13 +0000
committerGreg Wilkins2015-01-01 15:18:13 +0000
commit3af9b145a30d5515681a9e01c542af78c12247d3 (patch)
tree26ef0ef6eab808ce7439b74af21e1348ca1b63fc /jetty-client
parent20fc880c3eda2d70ded1b2f3de956464a86b983e (diff)
downloadorg.eclipse.jetty.project-3af9b145a30d5515681a9e01c542af78c12247d3.tar.gz
org.eclipse.jetty.project-3af9b145a30d5515681a9e01c542af78c12247d3.tar.xz
org.eclipse.jetty.project-3af9b145a30d5515681a9e01c542af78c12247d3.zip
Deprecated the AbstractConnection dispatchIO mechanism
Diffstat (limited to 'jetty-client')
-rw-r--r--jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java7
-rw-r--r--jetty-client/src/main/java/org/eclipse/jetty/client/Socks4Proxy.java2
-rw-r--r--jetty-client/src/main/java/org/eclipse/jetty/client/http/HttpConnectionOverHTTP.java2
-rw-r--r--jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientCustomProxyTest.java8
-rw-r--r--jetty-client/src/test/java/org/eclipse/jetty/client/ssl/SslBytesServerTest.java2
5 files changed, 13 insertions, 8 deletions
diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java
index af0e52d07c..930480c555 100644
--- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java
+++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java
@@ -131,7 +131,6 @@ public class HttpClient extends ContainerLifeCycle
private volatile long addressResolutionTimeout = 15000;
private volatile long idleTimeout;
private volatile boolean tcpNoDelay = true;
- private volatile boolean dispatchIO = true;
private volatile boolean strictEventOrdering = false;
private volatile HttpField encodingField;
private volatile boolean removeIdleDestinations = false;
@@ -836,9 +835,11 @@ public class HttpClient extends ContainerLifeCycle
* @return true to dispatch I/O operations in a different thread, false to execute them in the selector thread
* @see #setDispatchIO(boolean)
*/
+ @Deprecated
public boolean isDispatchIO()
{
- return dispatchIO;
+ // TODO this did default to true, so usage needs to be evaluated.
+ return false;
}
/**
@@ -854,9 +855,9 @@ public class HttpClient extends ContainerLifeCycle
* @param dispatchIO true to dispatch I/O operations in a different thread,
* false to execute them in the selector thread
*/
+ @Deprecated
public void setDispatchIO(boolean dispatchIO)
{
- this.dispatchIO = dispatchIO;
}
/**
diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/Socks4Proxy.java b/jetty-client/src/main/java/org/eclipse/jetty/client/Socks4Proxy.java
index 5078ae40f0..de40538f7b 100644
--- a/jetty-client/src/main/java/org/eclipse/jetty/client/Socks4Proxy.java
+++ b/jetty-client/src/main/java/org/eclipse/jetty/client/Socks4Proxy.java
@@ -85,7 +85,7 @@ public class Socks4Proxy extends ProxyConfiguration.Proxy
public Socks4ProxyConnection(EndPoint endPoint, Executor executor, ClientConnectionFactory connectionFactory, Map<String, Object> context)
{
- super(endPoint, executor, false);
+ super(endPoint, executor);
this.connectionFactory = connectionFactory;
this.context = context;
}
diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/http/HttpConnectionOverHTTP.java b/jetty-client/src/main/java/org/eclipse/jetty/client/http/HttpConnectionOverHTTP.java
index d02574417f..eb65b568c4 100644
--- a/jetty-client/src/main/java/org/eclipse/jetty/client/http/HttpConnectionOverHTTP.java
+++ b/jetty-client/src/main/java/org/eclipse/jetty/client/http/HttpConnectionOverHTTP.java
@@ -44,7 +44,7 @@ public class HttpConnectionOverHTTP extends AbstractConnection implements Connec
public HttpConnectionOverHTTP(EndPoint endPoint, HttpDestination destination)
{
- super(endPoint, destination.getHttpClient().getExecutor(), destination.getHttpClient().isDispatchIO());
+ super(endPoint, destination.getHttpClient().getExecutor());
this.delegate = new Delegate(destination);
this.channel = new HttpChannelOverHTTP(this);
}
diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientCustomProxyTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientCustomProxyTest.java
index 0b17054409..c85ce40498 100644
--- a/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientCustomProxyTest.java
+++ b/jetty-client/src/test/java/org/eclipse/jetty/client/HttpClientCustomProxyTest.java
@@ -24,6 +24,7 @@ import java.nio.ByteBuffer;
import java.util.Map;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
+
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -152,9 +153,11 @@ public class HttpClientCustomProxyTest
public CAFEBABEConnection(EndPoint endPoint, Executor executor, ClientConnectionFactory connectionFactory, Map<String, Object> context)
{
- super(endPoint, executor, true);
+ super(endPoint, executor);
this.connectionFactory = connectionFactory;
this.context = context;
+
+ throw new IllegalStateException("This was calling super dispatchIO=true. Needs to be reviewed");
}
@Override
@@ -211,8 +214,9 @@ public class HttpClientCustomProxyTest
public CAFEBABEServerConnection(Connector connector, EndPoint endPoint, org.eclipse.jetty.server.ConnectionFactory connectionFactory)
{
- super(endPoint, connector.getExecutor(), true);
+ super(endPoint, connector.getExecutor());
this.connectionFactory = connectionFactory;
+ throw new IllegalStateException("This was calling super dispatchIO=true. Needs to be reviewed");
}
@Override
diff --git a/jetty-client/src/test/java/org/eclipse/jetty/client/ssl/SslBytesServerTest.java b/jetty-client/src/test/java/org/eclipse/jetty/client/ssl/SslBytesServerTest.java
index 4d813eff12..f2f3746b75 100644
--- a/jetty-client/src/test/java/org/eclipse/jetty/client/ssl/SslBytesServerTest.java
+++ b/jetty-client/src/test/java/org/eclipse/jetty/client/ssl/SslBytesServerTest.java
@@ -111,7 +111,7 @@ public class SslBytesServerTest extends SslBytesTest
@Override
public Connection newConnection(Connector connector, EndPoint endPoint)
{
- return configure(new HttpConnection(getHttpConfiguration(), connector, endPoint, false)
+ return configure(new HttpConnection(getHttpConfiguration(), connector, endPoint)
{
@Override
protected HttpParser newHttpParser()

Back to the top