public class WebSocketExtension extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebSocketExtension.Parameter |
Constructor and Description |
---|
WebSocketExtension(String name) |
WebSocketExtension(String name,
List<WebSocketExtension.Parameter> parameters) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
List<WebSocketExtension.Parameter> |
getParameters() |
static List<WebSocketExtension> |
parse(String extensionHeader) |
static String |
toExtensionHeader(List<WebSocketExtension> extensions)
Compose a String from a list of extensions to be used in the response of a protocol negotiation.
|
String |
toString() |
public WebSocketExtension(String name)
public WebSocketExtension(String name, List<WebSocketExtension.Parameter> parameters)
public String getName()
public List<WebSocketExtension.Parameter> getParameters()
public static List<WebSocketExtension> parse(String extensionHeader)
public static String toExtensionHeader(List<WebSocketExtension> extensions)
extensions
- list of WebSocketExtension
Headers
Copyright © 2017 JBoss by Red Hat. All rights reserved.