Uses of Class
com.neovisionaries.ws.client.WebSocketException
-
Uses of WebSocketException in com.neovisionaries.ws.client
Subclasses of WebSocketException in com.neovisionaries.ws.clientModifier and TypeClassDescriptionclassThe certificate of the peer does not match the expected hostname.(package private) class(package private) classclassAn exception raised due to a violation against the WebSocket protocol.Methods in com.neovisionaries.ws.client with parameters of type WebSocketExceptionModifier and TypeMethodDescriptionvoidListenerManager.callOnConnectError(WebSocketException cause) voidListenerManager.callOnError(WebSocketException cause) private voidReadingThread.callOnError(WebSocketException cause) CallonErrormethod of the listeners.voidListenerManager.callOnFrameError(WebSocketException cause, WebSocketFrame frame) private voidReadingThread.callOnFrameError(WebSocketException cause, WebSocketFrame frame) CallonFrameErrormethod of the listeners.voidListenerManager.callOnMessageDecompressionError(WebSocketException cause, byte[] compressed) private voidReadingThread.callOnMessageDecompressionError(WebSocketException cause, byte[] compressed) CallonMessageDecompressionErrormethod of the listeners.voidListenerManager.callOnMessageError(WebSocketException cause, List<WebSocketFrame> frames) private voidReadingThread.callOnMessageError(WebSocketException cause, List<WebSocketFrame> frames) CallonMessageErrormethod of the listeners.voidListenerManager.callOnSendError(WebSocketException cause, WebSocketFrame frame) voidListenerManager.callOnTextMessageError(WebSocketException cause, byte[] data) private voidReadingThread.callOnTextMessageError(WebSocketException cause, byte[] data) CallonTextMessageErrormethod of the listeners.voidListenerManager.callOnUnexpectedError(WebSocketException cause) private WebSocketFrameReadingThread.createCloseFrame(WebSocketException wse) private voidConnectThread.handleError(WebSocketException cause) voidWebSocketAdapter.onConnectError(WebSocket websocket, WebSocketException exception) voidWebSocketListener.onConnectError(WebSocket websocket, WebSocketException cause) Called whenWebSocket.connectAsynchronously()failed.voidWebSocketAdapter.onError(WebSocket websocket, WebSocketException cause) voidWebSocketListener.onError(WebSocket websocket, WebSocketException cause) Call when an error occurred.voidWebSocketAdapter.onFrameError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) voidWebSocketListener.onFrameError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) Called when a WebSocket frame failed to be read from the WebSocket.voidWebSocketAdapter.onMessageDecompressionError(WebSocket websocket, WebSocketException cause, byte[] compressed) voidWebSocketListener.onMessageDecompressionError(WebSocket websocket, WebSocketException cause, byte[] compressed) Called when a message failed to be decompressed.voidWebSocketAdapter.onMessageError(WebSocket websocket, WebSocketException cause, List<WebSocketFrame> frames) voidWebSocketListener.onMessageError(WebSocket websocket, WebSocketException cause, List<WebSocketFrame> frames) Called when it failed to concatenate payloads of multiple frames to construct a message.voidWebSocketAdapter.onSendError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) voidWebSocketListener.onSendError(WebSocket websocket, WebSocketException cause, WebSocketFrame frame) Called when an error occurred when a frame was tried to be sent to the server.voidWebSocketAdapter.onTextMessageError(WebSocket websocket, WebSocketException cause, byte[] data) voidWebSocketListener.onTextMessageError(WebSocket websocket, WebSocketException cause, byte[] data) Called when it failed to convert payload data into a string.voidWebSocketAdapter.onUnexpectedError(WebSocket websocket, WebSocketException cause) voidWebSocketListener.onUnexpectedError(WebSocket websocket, WebSocketException cause) Called when an uncaught throwable was detected in either the reading thread (which reads frames from the server) or the writing thread (which sends frames to the server).Methods in com.neovisionaries.ws.client that throw WebSocketExceptionModifier and TypeMethodDescriptionConnectable.call()private voidWebSocket.changeStateOnConnect()protected abstract byte[]PerMessageCompressionExtension.compress(byte[] plain) Compress the plain message.protected byte[]PerMessageDeflateExtension.compress(byte[] plain) private intPerMessageDeflateExtension.computeWindowSize(String key, String value) SocketConnector.connect()WebSocket.connect()Connect to the server, send an opening handshake to the server, receive the response and then start threads to communicate with the server.private voidSocketConnector.connectSocket()protected abstract byte[]PerMessageCompressionExtension.decompress(byte[] compressed) Decompress the compressed message.protected byte[]PerMessageDeflateExtension.decompress(byte[] compressed) private voidSocketConnector.doConnect()private voidWritingThread.doFlush()private intPerMessageDeflateExtension.extractMaxWindowBits(String key, String value) private longWritingThread.flushIfLongInterval(long lastFlushAt) SocketConnector.getConnectedSocket()WebSocket.getConnectedSocket()Get the raw socket which this WebSocket uses internally.private voidSocketConnector.handshake()Perform proxy handshake and optionally SSL handshake.private WebSocketInputStreamWebSocket.openInputStream(Socket socket) Open the input stream of the WebSocket connection.private WebSocketOutputStreamWebSocket.openOutputStream(Socket socket) Open the output stream of the WebSocket connection.(package private) voidWebSocketInputStream.readBytes(byte[] buffer, int length) WebSocketInputStream.readFrame()HandshakeReader.readHandshake(WebSocketInputStream input, String key) WebSocket.readHandshake(WebSocketInputStream input, String key) Receive an opening handshake response from the WebSocket server.HandshakeReader.readHttpHeaders(WebSocketInputStream input) private byte[]WebSocketInputStream.readPayload(long payloadLength, boolean mask, byte[] maskingKey) private StatusLineHandshakeReader.readStatusLine(WebSocketInputStream input) Read a status line from an HTTP server.private InetAddress[]SocketConnector.resolveHostname()private voidWritingThread.sendFrame(WebSocketFrame frame) private voidWritingThread.sendFrames(boolean last) private voidSocketConnector.setSoTimeout(int timeout) WebSocket.shakeHands(Socket socket) Perform the opening handshake.(package private) voidPerMessageDeflateExtension.validate()(package private) voidWebSocketExtension.validate()Validate this instance.private voidHandshakeReader.validateAccept(StatusLine statusLine, Map<String, List<String>> headers, String key) Validate the value ofSec-WebSocket-Acceptheader.private voidHandshakeReader.validateConnection(StatusLine statusLine, Map<String, List<String>> headers) Validate the value ofConnectionheader.private voidHandshakeReader.validateExtensionCombination(StatusLine statusLine, Map<String, List<String>> headers, List<WebSocketExtension> extensions) private voidHandshakeReader.validateExtensions(StatusLine statusLine, Map<String, List<String>> headers) Validate the value ofSec-WebSocket-Extensionsheader.private voidPerMessageDeflateExtension.validateParameter(String key, String value) private voidHandshakeReader.validateProtocol(StatusLine statusLine, Map<String, List<String>> headers) Validate the value ofSec-WebSocket-Protocolheader.private voidHandshakeReader.validateStatusLine(StatusLine statusLine, Map<String, List<String>> headers, WebSocketInputStream input) Validate the status line.private voidHandshakeReader.validateUpgrade(StatusLine statusLine, Map<String, List<String>> headers) Validate the value ofUpgradeheader.private voidReadingThread.verifyFrame(WebSocketFrame frame) private voidReadingThread.verifyFrameFragmentation(WebSocketFrame frame) private voidReadingThread.verifyFrameMask(WebSocketFrame frame) Ensure that the given frame is not masked.private voidReadingThread.verifyFrameOpcode(WebSocketFrame frame) Ensure that the opcode of the give frame is a known one.private voidReadingThread.verifyFrameSize(WebSocketFrame frame) private voidReadingThread.verifyReservedBit1(WebSocketFrame frame) Verify the RSV1 bit of a frame.private booleanReadingThread.verifyReservedBit1ForPMCE(WebSocketFrame frame) Verify the RSV1 bit of a frame using the rule described in RFC 7692.private voidReadingThread.verifyReservedBit2(WebSocketFrame frame) Verify the RSV2 bit of a frame.private voidReadingThread.verifyReservedBit3(WebSocketFrame frame) Verify the RSV3 bit of a frame.private voidReadingThread.verifyReservedBits(WebSocketFrame frame) private voidWebSocket.writeHandshake(WebSocketOutputStream output, String key) Send an opening handshake request to the WebSocket server.