454152 - Remove mux remnants from WebSocketClient

This commit is contained in:
Joakim Erdfelt 2014-12-04 10:40:22 -07:00
parent 1ff23803f7
commit 35b86eed16
1 changed files with 0 additions and 29 deletions

View File

@ -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)
*