| Modifier and Type | Field and Description |
|---|---|
| public static final String | ABNF_REQUIRED_QUOTING
ABNF from RFC 2616, RFC 822, and RFC 6455 specified characters requiring quoting. |
| private final List | |
| private final List | |
| private final Map | |
| private final String | |
| private final URI | |
| private final List | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addExtensions(ExtensionConfig...
the configuration(s) to add configs)Add WebSocket Extension Configuration(s) to Upgrade Request. |
| public void | addExtensions(String...
the configuration(s) to add configs)Add WebSocket Extension Configuration(s) to request
This is merely the list of requested Extensions to use, see |
| public List | getCookies()
Implements org. Get the list of Cookies on the Upgrade request |
| public List | getExtensions()
Implements org. Get the list of WebSocket Extension Configurations for this Upgrade Request. |
| public String | getHeader(String
the name of the header name)Implements org. Get a specific Header value from Upgrade Request |
| public int | getHeaderInt(String
the name of the header name)Implements org. Get the specific Header value, as an |
| public Map | getHeaders()
Implements org. Get the headers as a Map of keys to value lists. |
| public List | getHeaders(String
the header name name)Implements org. Get the specific header values (for multi-value headers) |
| public String | getHost()
Implements org. The host of the Upgrade Request URI |
| public String | getHttpVersion()
Implements org. The HTTP version used for this Upgrade Request
As of RFC6455 (December 2011) this is always
|
| public String | getMethod()
Implements org. The HTTP method for this Upgrade Request. |
| public String | getOrigin()
Implements org. The WebSocket Origin of this Upgrade Request See RFC6455: Section 10.2 for details. |
| public Map | getParameterMap()
Implements org. Returns a map of the query parameters of the request. |
| public String | getProtocolVersion()
Implements org. Get the WebSocket Protocol Version
As of RFC6455, Jetty only supports version
|
| public String | getQueryString()
Implements org. Get the Query String of the request URI. |
| public URI | getRequestURI()
Implements org. Get the Request URI |
| public List | getSubProtocols()
Implements org. Get the list of offered WebSocket sub-protocols. |
| public long | getTimeout()
Returns: the total timeout for this request, in milliseconds; zero or negative if the timeout is disabled |
| public Principal | getUserPrincipal()
Implements org. Get the User Principal for this request. |
| public boolean | hasSubProtocol(String
the sub-protocol to test for test)Implements org. Test if a specific sub-protocol is offered |
| public boolean | isSecure()
Implements org. Test if connection is secure. |
| public static String | |
| private static void | quoteIfNeeded(StringBuilder
the buffer to append to buf, String the string to possibly quote str, String the delimiter characters that will trigger automatic quoting delim)Append into buf the provided string, adding quotes if needed. |
| public void | |
| public void | setExtensions(List<ExtensionConfig>
the list of extension configurations configs)Set the list of WebSocket Extension configurations on the request. |
| public void | |
| public void | |
| public void | setHeaders(Map<String, List<String>>
the headers to set headers)Sets multiple headers on the request. |
| public void | setSubProtocols(List<String>
the offered sub-protocol list protocols)Set the offered WebSocket Sub-Protocol list. |
| public void | setSubProtocols(String...
the offered sub-protocol list protocols)Set the offered WebSocket Sub-Protocol list. |
| public void | setTimeout(long
the total timeout for the request/response conversation of the WebSocket handshake;
use zero or a negative value to disable the timeout timeout, TimeUnit the timeout unit unit)
|
| ABNF_REQUIRED_QUOTING | back to summary |
|---|---|
| public static final String ABNF_REQUIRED_QUOTING ABNF from RFC 2616, RFC 822, and RFC 6455 specified characters requiring quoting. | |
| cookies | back to summary |
|---|---|
| private final List<HttpCookie> cookies | |
| extensions | back to summary |
|---|---|
| private final List<ExtensionConfig> extensions | |
| headers | back to summary |
|---|---|
| private final Map<String, List<String>> headers | |
| host | back to summary |
|---|---|
| private final String host | |
| requestURI | back to summary |
|---|---|
| private final URI requestURI | |
| subProtocols | back to summary |
|---|---|
| private final List<String> subProtocols | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| ClientUpgradeRequest | back to summary |
|---|---|
| public ClientUpgradeRequest() | |
| ClientUpgradeRequest | back to summary |
|---|---|
| public ClientUpgradeRequest(URI uri)
Deprecated use
| |
| addExtensions | back to summary |
|---|---|
| public void addExtensions(ExtensionConfig... configs) Add WebSocket Extension Configuration(s) to Upgrade Request.
This is merely the list of requested Extensions to use, see
| |
| addExtensions | back to summary |
|---|---|
| public void addExtensions(String... configs) Add WebSocket Extension Configuration(s) to request
This is merely the list of requested Extensions to use, see
| |
| getCookies | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the list of Cookies on the Upgrade request
| |
| getExtensions | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the list of WebSocket Extension Configurations for this Upgrade Request.
This is merely the list of requested Extensions to use, see
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Implements org. Doc from org. Get a specific Header value from Upgrade Request | |
| getHeaderInt | back to summary |
|---|---|
| public int getHeaderInt(String name) Implements org. Doc from org. Get the specific Header value, as an | |
| getHeaders | back to summary |
|---|---|
| public Map Implements org. Doc from org. Get the headers as a Map of keys to value lists. | |
| getHeaders | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the specific header values (for multi-value headers) | |
| getHost | back to summary |
|---|---|
| public String getHost() Implements org. Doc from org. The host of the Upgrade Request URI | |
| getHttpVersion | back to summary |
|---|---|
| public String getHttpVersion() Implements org. Doc from org. The HTTP version used for this Upgrade Request
As of RFC6455 (December 2011) this is always
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements org. Doc from org. The HTTP method for this Upgrade Request.
As of RFC6455 (December 2011) this is always | |
| getOrigin | back to summary |
|---|---|
| public String getOrigin() Implements org. Doc from org. The WebSocket Origin of this Upgrade Request See RFC6455: Section 10.2 for details.
Equivalent to | |
| getParameterMap | back to summary |
|---|---|
| public Map Implements org. Doc from org. Returns a map of the query parameters of the request. | |
| getProtocolVersion | back to summary |
|---|---|
| public String getProtocolVersion() Implements org. Doc from org. Get the WebSocket Protocol Version
As of RFC6455, Jetty only supports version
| |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements org. Doc from org. Get the Query String of the request URI. | |
| getRequestURI | back to summary |
|---|---|
| public URI getRequestURI() Implements org. Doc from org. Get the Request URI | |
| getSubProtocols | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the list of offered WebSocket sub-protocols. | |
| getTimeout | back to summary |
|---|---|
public long getTimeout()
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements org. Doc from org. Get the User Principal for this request. Only applicable when using UpgradeRequest from server side. | |
| hasSubProtocol | back to summary |
|---|---|
| public boolean hasSubProtocol(String test) Implements org. Doc from org. Test if a specific sub-protocol is offered | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements org. Doc from org. Test if connection is secure.
| |
| joinValues | back to summary |
|---|---|
| public static String joinValues(List<String> values) | |
| quoteIfNeeded | back to summary |
|---|---|
| private static void quoteIfNeeded(StringBuilder buf, String str, String delim) Append into buf the provided string, adding quotes if needed.
Quoting is determined if any of the characters in the
| |
| setCookies | back to summary |
|---|---|
| public void setCookies(List<HttpCookie> cookies) Set the list of Cookies on the request
| |
| setExtensions | back to summary |
|---|---|
| public void setExtensions(List<ExtensionConfig> configs) Set the list of WebSocket Extension configurations on the request.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, List<String> values) Set a specific header with multi-value field Overrides any previous value for this named header | |
| setHeader | back to summary |
|---|---|
| public void setHeader(String name, String value) Set a specific header value Overrides any previous value for this named header | |
| setHeaders | back to summary |
|---|---|
| public void setHeaders(Map<String, List<String>> headers) Sets multiple headers on the request. Only sets those headers provided, does not remove headers that exist on request and are not provided in the parameter for this method.
Convenience method vs calling | |
| setSubProtocols | back to summary |
|---|---|
| public void setSubProtocols(List<String> protocols) Set the offered WebSocket Sub-Protocol list. | |
| setSubProtocols | back to summary |
|---|---|
| public void setSubProtocols(String... protocols) Set the offered WebSocket Sub-Protocol list.
| |
| setTimeout | back to summary |
|---|---|
public void setTimeout(long timeout, TimeUnit unit)
| |