|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.websockets.WebSocketMeta
org.glassfish.grizzly.websockets.ClientWebSocketMeta
public class ClientWebSocketMeta
Client-side WebSocket meta information.
WebSocketMeta,
ServerWebSocketMeta| Constructor Summary | |
|---|---|
ClientWebSocketMeta(URI uri)
Construct a client-side WebSocketMeta using URI. |
|
ClientWebSocketMeta(URI uri,
String origin,
String protocol,
String host,
String key1,
String key2,
byte[] key3,
Boolean isSecure)
Construct a client-side WebSocketMeta. |
|
| Method Summary | |
|---|---|
String |
getHost()
Gets the WebSocket "Host" header value. |
SecKey |
getKey1()
Gets the WebSocket "Sec-WebSocket-Key1" header value. |
SecKey |
getKey2()
Gets the WebSocket "Sec-WebSocket-Key2" header value. |
byte[] |
getKey3()
Gets the WebSocket key3 value transferred as a payload. |
String |
toString()
The WebSocketMeta string description. |
| Methods inherited from class org.glassfish.grizzly.websockets.WebSocketMeta |
|---|
getHandshakeHeader, getOrigin, getProtocol, getURI, isSecure, setHandshakeHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientWebSocketMeta(URI uri)
URI.
Origin header will be set to "http://localhost"
Sec-WebSocket-Key1, Sec-WebSocket-Key2 and key3 will be autogenerated.
uri - WebSocket URI
public ClientWebSocketMeta(URI uri,
String origin,
String protocol,
String host,
String key1,
String key2,
byte[] key3,
Boolean isSecure)
uri - WebSocket URIorigin - the WebSocket "Origin" header valueprotocol - the WebSocket "Sec-WebSocket-Protocol" header valuehost - the WebSocket "Host" header valuekey1 - the WebSocket "Sec-WebSocket-Key1" header valuekey2 - the WebSocket "Sec-WebSocket-Key2" header valuekey3 - the WebSocket key3 value transferred as a payload.isSecure - true, if the WebSocket will be used in the secured mode,
or false otherwise. It's possible to pass null, in this
case WebSocket will try to autodetect security basing on passed uri parameter.| Method Detail |
|---|
public String getHost()
WebSocket "Host" header value.
WebSocket "Host" header value.public SecKey getKey1()
WebSocket "Sec-WebSocket-Key1" header value.
WebSocket "Sec-WebSocket-Key1" header value.public SecKey getKey2()
WebSocket "Sec-WebSocket-Key2" header value.
WebSocket "Sec-WebSocket-Key2" header value.public byte[] getKey3()
WebSocket key3 value transferred as a payload.
WebSocket key3 value transferred as a payload.public String toString()
WebSocketMeta
toString in class WebSocketMeta
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||