Uses of Class
org.java_websocket.exceptions.InvalidDataException
-
Packages that use InvalidDataException Package Description org.java_websocket org.java_websocket.drafts This package encapsulates all implementations in relation with the WebSocket drafts.org.java_websocket.exceptions This package encapsulates all implementations in relation with the exceptions thrown in this lib.org.java_websocket.extensions This package encapsulates all interfaces and implementations in relation with the WebSocket Sec-WebSocket-Extensions.org.java_websocket.framing This package encapsulates all interfaces and implementations in relation with the WebSocket frames.org.java_websocket.server This package encapsulates all implementations in relation with the WebSocketServer.org.java_websocket.util This package encapsulates the utility classes. -
-
Uses of InvalidDataException in org.java_websocket
Methods in org.java_websocket with parameters of type InvalidDataException Modifier and Type Method Description void
WebSocketImpl. close(InvalidDataException e)
Methods in org.java_websocket that throw InvalidDataException Modifier and Type Method Description void
WebSocketAdapter. onWebsocketHandshakeReceivedAsClient(WebSocket conn, ClientHandshake request, ServerHandshake response)
void
WebSocketListener. onWebsocketHandshakeReceivedAsClient(WebSocket conn, ClientHandshake request, ServerHandshake response)
Called on the client side when the socket connection is first established, and the WebSocketImpl handshake response has been received.ServerHandshakeBuilder
WebSocketAdapter. onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
This default implementation does not do anything.ServerHandshakeBuilder
WebSocketListener. onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
Called on the server side when the socket connection is first established, and the WebSocket handshake has been received.void
WebSocketAdapter. onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
This default implementation does not do anything which will cause the connections to always progress.void
WebSocketListener. onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
Called on the client side when the socket connection is first established, and the WebSocketImpl handshake has just been sent. -
Uses of InvalidDataException in org.java_websocket.drafts
Methods in org.java_websocket.drafts that throw InvalidDataException Modifier and Type Method Description int
Draft. checkAlloc(int bytecount)
void
Draft_6455. processFrame(WebSocketImpl webSocketImpl, Framedata frame)
abstract void
Draft. processFrame(WebSocketImpl webSocketImpl, Framedata frame)
Handle the frame specific to the draftList<Framedata>
Draft_6455. translateFrame(ByteBuffer buffer)
abstract List<Framedata>
Draft. translateFrame(ByteBuffer buffer)
Framedata
Draft_6455. translateSingleFrame(ByteBuffer buffer)
-
Uses of InvalidDataException in org.java_websocket.exceptions
Subclasses of InvalidDataException in org.java_websocket.exceptions Modifier and Type Class Description class
InvalidFrameException
exception which indicates that a invalid frame was recieved (CloseFrame.PROTOCOL_ERROR)class
InvalidHandshakeException
exception which indicates that a invalid handshake was recieved (CloseFrame.PROTOCOL_ERROR)class
LimitExedeedException
exception which indicates that the message limited was exedeeded (CloseFrame.TOOBIG) -
Uses of InvalidDataException in org.java_websocket.extensions
Methods in org.java_websocket.extensions that throw InvalidDataException Modifier and Type Method Description void
DefaultExtension. decodeFrame(Framedata inputFrame)
void
IExtension. decodeFrame(Framedata inputFrame)
Decode a frame with a extension specific algorithm.void
CompressionExtension. isFrameValid(Framedata inputFrame)
void
DefaultExtension. isFrameValid(Framedata inputFrame)
void
IExtension. isFrameValid(Framedata inputFrame)
Check if the received frame is correctly implemented by the other endpoint and there are no specification errors (like wrongly set RSV) -
Uses of InvalidDataException in org.java_websocket.framing
Methods in org.java_websocket.framing that throw InvalidDataException Modifier and Type Method Description void
CloseFrame. isValid()
void
ControlFrame. isValid()
void
DataFrame. isValid()
abstract void
FramedataImpl1. isValid()
Check if the frame is valid due to specificationvoid
TextFrame. isValid()
-
Uses of InvalidDataException in org.java_websocket.server
Methods in org.java_websocket.server that throw InvalidDataException Modifier and Type Method Description ServerHandshakeBuilder
WebSocketServer. onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
-
Uses of InvalidDataException in org.java_websocket.util
Methods in org.java_websocket.util that throw InvalidDataException Modifier and Type Method Description static String
Charsetfunctions. stringUtf8(byte[] bytes)
static String
Charsetfunctions. stringUtf8(ByteBuffer bytes)
-