SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WebSocketExtension represents an extension as defined by RFC-6455 that the WebSocket clients and the WebSocket servers can negotiate during the handshake. An extension can have zero or more parameters.
Constructor Summary | |
WebSocketExtension()
Creates a new WebSocketExtension instance. |
Method Summary | |
String
|
getParameter(name)
Gets the value of the specified parameter from the list of registered parmeters. |
Array
|
getParameters()
Returns an array consisting of the names of all the parameters specified for the extension. |
void
|
setParameter(pname, pvalue)
Sets a parameter on the extension by specifying it's name and the value. |
String
|
toString()
Returns string representation of the extension and it's parameters as per RFC 2616. |
Constructor Detail |
WebSocketExtension()
Method Detail |
String getParameter(name)
name
- {String} parmaeter name
String
the value of the parameter with the specified name
Array getParameters()
Array
names of all the parameters
void setParameter(pname, pvalue)
pname
- {String} parmaeter name
pvalue
- {String} parmaeter value
void
String toString()
String
string representation of the extension