Issue #207 - remove IncomingFrames#incomingError(throwable)

This commit is contained in:
Joakim Erdfelt 2017-04-07 13:20:50 -07:00
parent b93925e03e
commit d5151ddc90
10 changed files with 1 additions and 60 deletions

View File

@ -25,9 +25,6 @@ import org.eclipse.jetty.websocket.api.FrameCallback;
*/ */
public interface IncomingFrames public interface IncomingFrames
{ {
@Deprecated
void incomingError(Throwable t);
/** /**
* Process the incoming frame. * Process the incoming frame.
* <p> * <p>

View File

@ -126,12 +126,6 @@ public abstract class AbstractExtension extends AbstractLifeCycle implements Dum
return policy; return policy;
} }
@Override
public void incomingError(Throwable e)
{
nextIncomingError(e);
}
/** /**
* Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing. * Used to indicate that the extension makes use of the RSV1 bit of the base websocket framing.
* <p> * <p>
@ -171,11 +165,6 @@ public abstract class AbstractExtension extends AbstractLifeCycle implements Dum
return false; return false;
} }
protected void nextIncomingError(Throwable e)
{
this.nextIncoming.incomingError(e);
}
protected void nextIncomingFrame(Frame frame, FrameCallback callback) protected void nextIncomingFrame(Frame frame, FrameCallback callback)
{ {
log.debug("nextIncomingFrame({})",frame); log.debug("nextIncomingFrame({})",frame);

View File

@ -208,12 +208,6 @@ public class ExtensionStack extends ContainerLifeCycle implements IncomingFrames
return (this.extensions != null) && (this.extensions.size() > 0); return (this.extensions != null) && (this.extensions.size() > 0);
} }
@Override
public void incomingError(Throwable e)
{
nextIncoming.incomingError(e);
}
@Override @Override
public void incomingFrame(Frame frame, FrameCallback callback) public void incomingFrame(Frame frame, FrameCallback callback)
{ {

View File

@ -42,13 +42,6 @@ public class IdentityExtension extends AbstractExtension
return "identity"; return "identity";
} }
@Override
public void incomingError(Throwable e)
{
// pass through
nextIncomingError(e);
}
@Override @Override
public void incomingFrame(Frame frame, FrameCallback callback) public void incomingFrame(Frame frame, FrameCallback callback)
{ {

View File

@ -574,7 +574,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
private void notifyError(Throwable cause) private void notifyError(Throwable cause)
{ {
extensionStack.incomingError(cause); // FIXME need to forward error to Session (or those interested)
} }
@Override @Override

View File

@ -37,12 +37,6 @@ public class DummyIncomingFrames implements IncomingFrames
this.id = id; this.id = id;
} }
@Override
public void incomingError(Throwable e)
{
LOG.debug("incomingError()",e);
}
@Override @Override
public void incomingFrame(Frame frame, FrameCallback callback) public void incomingFrame(Frame frame, FrameCallback callback)
{ {

View File

@ -434,11 +434,6 @@ public class DeflateFrameExtensionTest extends AbstractExtensionTest
throw new RuntimeIOException(x); throw new RuntimeIOException(x);
} }
} }
@Override
public void incomingError(Throwable t)
{
}
}); });
BinaryFrame frame = new BinaryFrame(); BinaryFrame frame = new BinaryFrame();

View File

@ -97,7 +97,6 @@ public class BlockheadClient implements OutgoingFrames, ConnectionStateListener,
public long totalParseOps = 0; public long totalParseOps = 0;
public EventQueue<WebSocketFrame> frames = new EventQueue<>(); public EventQueue<WebSocketFrame> frames = new EventQueue<>();
public EventQueue<Throwable> errors = new EventQueue<>();
@Override @Override
public void run() public void run()
@ -152,7 +151,6 @@ public class BlockheadClient implements OutgoingFrames, ConnectionStateListener,
StringBuilder str = new StringBuilder(); StringBuilder str = new StringBuilder();
str.append("FrameReadingThread["); str.append("FrameReadingThread[");
str.append(",frames=" + frames.size()); str.append(",frames=" + frames.size());
str.append(",errors=" + errors.size());
str.append(String.format(",totalBytes=%,d",totalBytes)); str.append(String.format(",totalBytes=%,d",totalBytes));
str.append(String.format(",totalReadOps=%,d",totalReadOps)); str.append(String.format(",totalReadOps=%,d",totalReadOps));
str.append(String.format(",totalParseOps=%,d",totalParseOps)); str.append(String.format(",totalParseOps=%,d",totalParseOps));
@ -160,12 +158,6 @@ public class BlockheadClient implements OutgoingFrames, ConnectionStateListener,
return str.toString(); return str.toString();
} }
@Override
public synchronized void incomingError(Throwable t)
{
this.errors.add(t);
}
@Override @Override
public synchronized void incomingFrame(Frame frame, FrameCallback callback) public synchronized void incomingFrame(Frame frame, FrameCallback callback)
{ {
@ -175,7 +167,6 @@ public class BlockheadClient implements OutgoingFrames, ConnectionStateListener,
public synchronized void clear() public synchronized void clear()
{ {
this.frames.clear(); this.frames.clear();
this.errors.clear();
} }
} }

View File

@ -214,12 +214,6 @@ public class BlockheadServerConnection implements IncomingFrames, OutgoingFrames
return policy; return policy;
} }
@Override
public void incomingError(Throwable e)
{
incomingFrames.incomingError(e);
}
@Override @Override
public void incomingFrame(Frame frame, FrameCallback callback) public void incomingFrame(Frame frame, FrameCallback callback)
{ {

View File

@ -145,12 +145,6 @@ public class IncomingFramesCapture implements Parser.Handler, IncomingFrames
return frames; return frames;
} }
@Override
public void incomingError(Throwable t)
{
errors.add(t);
}
@Override @Override
public void incomingFrame(Frame frame, FrameCallback callback) public void incomingFrame(Frame frame, FrameCallback callback)
{ {