Package NeoVisionaries.WebSockets
Class OpeningHandshakeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- NeoVisionaries.WebSockets.WebSocketException
-
- NeoVisionaries.WebSockets.OpeningHandshakeException
-
- All Implemented Interfaces:
java.io.Serializable
public class OpeningHandshakeException extends WebSocketException
An exception raised due to a violation against the WebSocket protocol.
Read included Apache License 2.0:HERE
AllNeoVisionaries.WebSockets.*
Code Obtained From:GitHub 'NV' (Takahiko Kawasaki)
Public Archive.- Since:
- 1.19
- See Also:
- Serialized Form
Hi-Lited Source-Code:- View Here: NeoVisionaries/WebSockets/OpeningHandshakeException.java
- Open New Browser-Tab: NeoVisionaries/WebSockets/OpeningHandshakeException.java
File Size: 2,925 Bytes Line Count: 108 '\n' Characters Found
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBody()
Get the response body contained in the WebSocket opening handshake response from the server.Map<String,List<String>>
getHeaders()
Get the HTTP headers contained in the WebSocket opening handshake response from the server.StatusLine
getStatusLine()
Get the status line contained in the WebSocket opening handshake response from the server.-
Methods inherited from class NeoVisionaries.WebSockets.WebSocketException
getError
-
-
-
-
Method Detail
-
getStatusLine
public StatusLine getStatusLine()
Get the status line contained in the WebSocket opening handshake response from the server.- Returns:
- The status line.
- Code:
- Exact Method Body:
return mStatusLine;
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders ()
Get the HTTP headers contained in the WebSocket opening handshake response from the server.- Returns:
- The HTTP headers. The returned map is an instance of
TreeMap
withString.CASE_INSENSITIVE_ORDER
comparator. - Code:
- Exact Method Body:
return mHeaders;
-
getBody
public byte[] getBody()
Get the response body contained in the WebSocket opening handshake response from the server.This method returns a non-null value only when (1) the status code is not 101 (Switching Protocols), (2) the response from the server has a response body, (3) the response has "Content-Length" header, and (4) no error occurred during reading the response body. In other cases, this method returns
null
.- Returns:
- The response body.
- Code:
- Exact Method Body:
return mBody;
-
-