WebSocket Extension HTTP headers may include parameters and follow RFC 7230 section 3.2
Note that the order of extensions in HTTP headers defines their order of execution, e.g. extensions "foo, bar" will be executed as "bar(foo(message))".
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | WebSocketExtension(String
the name of the extension name)Create a WebSocketExtension with the given name. |
| public | WebSocketExtension(String
the name of the extension name, Map<String, String> the parameters parameters)Create a WebSocketExtension with the given name and parameters. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public Map | |
| public int | |
| private static WebSocketExtension | |
| public static List | Returns: the list of extensionsthe string to parse extensions)Parse the given, comma-separated string into a list of |
| public String |
| name | back to summary |
|---|---|
| private final String name | |
| parameters | back to summary |
|---|---|
| private final Map<String, String> parameters | |
| WebSocketExtension | back to summary |
|---|---|
| public WebSocketExtension(String name) Create a WebSocketExtension with the given name.
| |
| WebSocketExtension | back to summary |
|---|---|
| public WebSocketExtension(String name, Map<String, String> parameters) Create a WebSocketExtension with the given name and parameters. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the extension (never | |
| getParameters | back to summary |
|---|---|
| public Map Return the parameters of the extension (never | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parseExtension | back to summary |
|---|---|
| private static WebSocketExtension parseExtension(String extension) | |
| parseExtensions | back to summary |
|---|---|
| public static List Parse the given, comma-separated string into a list of This method can be used to parse a "Sec-WebSocket-Extension" header.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |