diff options
Diffstat (limited to 'jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java')
-rw-r--r-- | jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java b/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java index f3d31e1c16..f73ff8edd0 100644 --- a/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java +++ b/jetty-websocket/websocket-common/src/test/java/org/eclipse/jetty/websocket/common/io/LocalWebSocketConnection.java @@ -18,14 +18,9 @@ package org.eclipse.jetty.websocket.common.io; -import java.io.IOException; import java.net.InetSocketAddress; -import java.net.URI; -import java.nio.ByteBuffer; -import java.util.concurrent.Future; import org.eclipse.jetty.websocket.api.SuspendToken; -import org.eclipse.jetty.websocket.api.WebSocketConnection; import org.eclipse.jetty.websocket.api.WebSocketException; import org.eclipse.jetty.websocket.api.WebSocketPolicy; import org.eclipse.jetty.websocket.api.WriteCallback; @@ -35,7 +30,7 @@ import org.eclipse.jetty.websocket.common.LogicalConnection; import org.eclipse.jetty.websocket.common.WebSocketSession; import org.junit.rules.TestName; -public class LocalWebSocketConnection implements WebSocketConnection, LogicalConnection, IncomingFrames +public class LocalWebSocketConnection implements LogicalConnection, IncomingFrames { private final String id; private WebSocketPolicy policy = WebSocketPolicy.newServerPolicy(); @@ -106,24 +101,12 @@ public class LocalWebSocketConnection implements WebSocketConnection, LogicalCon } @Override - public URI getRequestURI() - { - return null; - } - - @Override public WebSocketSession getSession() { return null; } @Override - public String getSubProtocol() - { - return null; - } - - @Override public void incomingError(WebSocketException e) { incoming.incomingError(e); @@ -157,11 +140,6 @@ public class LocalWebSocketConnection implements WebSocketConnection, LogicalCon } @Override - public void ping(ByteBuffer buf) throws IOException - { - } - - @Override public void resume() { } @@ -193,22 +171,4 @@ public class LocalWebSocketConnection implements WebSocketConnection, LogicalCon { return String.format("%s[%s]",LocalWebSocketConnection.class.getSimpleName(),id); } - - @Override - public Future<Void> write(byte[] buf, int offset, int len) - { - return null; - } - - @Override - public Future<Void> write(ByteBuffer buffer) - { - return null; - } - - @Override - public Future<Void> write(String message) - { - return null; - } } |