diff --git a/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/io/ConnectionManager.java b/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/io/ConnectionManager.java index cb040298829..f38b3c409be 100644 --- a/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/io/ConnectionManager.java +++ b/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/io/ConnectionManager.java @@ -33,7 +33,6 @@ import org.eclipse.jetty.util.component.ContainerLifeCycle; import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Logger; import org.eclipse.jetty.websocket.api.StatusCode; -import org.eclipse.jetty.websocket.api.WebSocketException; import org.eclipse.jetty.websocket.client.ClientUpgradeRequest; import org.eclipse.jetty.websocket.client.WebSocketClient; import org.eclipse.jetty.websocket.common.WebSocketSession; @@ -104,20 +103,6 @@ public class ConnectionManager extends ContainerLifeCycle } } - private class VirtualConnect extends ConnectPromise - { - public VirtualConnect(WebSocketClient client, EventDriver driver, ClientUpgradeRequest request) - { - super(client,driver,request); - } - - @Override - public void run() - { - failed(new WebSocketException("MUX Not yet supported")); - } - } - private static final Logger LOG = Log.getLogger(ConnectionManager.class); public static InetSocketAddress toSocketAddress(URI uri) @@ -187,14 +172,6 @@ public class ConnectionManager extends ContainerLifeCycle public ConnectPromise connect(WebSocketClient client, EventDriver driver, ClientUpgradeRequest request) { - URI toUri = request.getRequestURI(); - String hostname = toUri.getHost(); - - if (isVirtualConnectionPossibleTo(hostname)) - { - return new VirtualConnect(client,driver,request); - } - return new PhysicalConnect(client,driver,request); } @@ -228,12 +205,6 @@ public class ConnectionManager extends ContainerLifeCycle return Collections.unmodifiableCollection(sessions); } - public boolean isVirtualConnectionPossibleTo(String hostname) - { - // TODO Auto-generated method stub - return false; - } - /** * Factory method for new WebSocketClientSelectorManager (used by other projects like cometd) *