|
||||||||||
| 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.ServerWebSocketMeta
public class ServerWebSocketMeta
Server-side WebSocket meta information.
WebSocketMeta,
ClientWebSocketMeta| Constructor Summary | |
|---|---|
ServerWebSocketMeta(URI uri,
String origin,
String location,
String protocol,
byte[] key,
Boolean isSecure)
Construct a server-side WebSocketMeta using URI and security key. |
|
| Method Summary | |
|---|---|
byte[] |
getKey()
Get the WebSocket key value transferred as a part of response payload. |
String |
getLocation()
Get the WebSocket "Sec-WebSocket-Location" header value |
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 ServerWebSocketMeta(URI uri,
String origin,
String location,
String protocol,
byte[] key,
Boolean isSecure)
URI and security key.
uri - WebSocket URIorigin - the WebSocket "Sec-WebSocket-Origin" header valuelocation - the WebSocket "Sec-WebSocket-Location" header valueprotocol - the WebSocket "Sec-WebSocket-Protocol" header valuekey - the WebSocket key value transferred as a part of response 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 byte[] getKey()
WebSocket key value transferred as a part of response payload.
WebSocket key value transferred as a part of response payload.public String getLocation()
WebSocket "Sec-WebSocket-Location" header value
WebSocket "Sec-WebSocket-Location" header valuepublic String toString()
toString in class WebSocketMeta
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||