|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.websockets.WebSocketMeta
public abstract class WebSocketMeta
WebSocket meta information.
ClientWebSocketMeta,
ServerWebSocketMeta| Constructor Summary | |
|---|---|
WebSocketMeta(URI uri)
Construct a WebSocketMeta using URI. |
|
WebSocketMeta(URI uri,
String origin,
String protocol,
Boolean isSecure)
Construct a WebSocketMeta with the passed parameters. |
|
| Method Summary | |
|---|---|
HttpHeader |
getHandshakeHeader()
Returns websocket handshake header, represented as HttpHeader. |
String |
getOrigin()
Gets the WebSocket Origin header value. |
String |
getProtocol()
Gets the WebSocket Sec-WebSocket-Protocol header value. |
URI |
getURI()
Gets WebSocket URI. |
boolean |
isSecure()
Returns true, if this WebSocket communication won't be secured, or false otherwise. |
protected void |
setHandshakeHeader(HttpHeader httpHeader)
Set the websocket handshake header, represented as HttpHeader. |
String |
toString()
The WebSocketMeta string description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketMeta(URI uri)
URI.
Origin header will be set to "http://localhost"
uri - WebSocket URI
public WebSocketMeta(URI uri,
String origin,
String protocol,
Boolean isSecure)
uri - WebSocket URIorigin - the WebSocket Origin header value.protocol - the WebSocket Sec-WebSocket-Protocol header value.isSecure - true, if websocket is secured "wss", or false otherwise.| Method Detail |
|---|
public URI getURI()
WebSocket URI.
WebSocket URI.public String getOrigin()
WebSocket Origin header value.
WebSocket Origin header value.public String getProtocol()
WebSocket Sec-WebSocket-Protocol header value.
WebSocket Sec-WebSocket-Protocol header value.public boolean isSecure()
public HttpHeader getHandshakeHeader()
HttpHeader.
HttpHeader.protected void setHandshakeHeader(HttpHeader httpHeader)
HttpHeader.
httpHeader - websocket handshake header, represented as HttpHeader.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||