WebSocketEngine#upgrade method
to upgrade the request.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LOCATION
Header containing a new URI when |
| public static final String | RETRY_AFTER
Header containing delay or date in which client can try to reconnect to the server. |
| public static final String | TRACING_HEADER_PREFIX
Prefix of headers used for including tracing information into handshake response. |
| public static final String | WWW_AUTHENTICATE
Header containing challenge with authentication scheme and parameters. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final String | Returns: the value of the response header with the given name, null if no header with the given name has been set on this response. TODO rename to getHeader(String name) ?? similar to TODO HttpServletResponse#getHeader(String)header name. name)Gets the value of the response header with the given name. |
| public abstract String | |
| public abstract int | |
| public abstract void | |
| public abstract void |
| LOCATION | back to summary |
|---|---|
| public static final String LOCATION Header containing a new URI when | |
| RETRY_AFTER | back to summary |
|---|---|
| public static final String RETRY_AFTER Header containing delay or date in which client can try to reconnect to the server. | |
| TRACING_HEADER_PREFIX | back to summary |
|---|---|
| public static final String TRACING_HEADER_PREFIX Prefix of headers used for including tracing information into handshake response. | |
| WWW_AUTHENTICATE | back to summary |
|---|---|
| public static final String WWW_AUTHENTICATE Header containing challenge with authentication scheme and parameters. | |
| UpgradeResponse | back to summary |
|---|---|
| public UpgradeResponse() | |
| getFirstHeaderValue | back to summary |
|---|---|
| public final String getFirstHeaderValue(final String name) Gets the value of the response header with the given name. If a response header with the given name exists and contains multiple values, the value that was added first will be returned. | |
| getReasonPhrase | back to summary |
|---|---|
| public abstract String getReasonPhrase() Get HTTP reason phrase. Warning The Reason Phrase is removed from HTTP/2 and from Servlet 6. | |
| getStatus | back to summary |
|---|---|
| public abstract int getStatus() Get the current HTTP status code of this response.
| |
| setReasonPhrase | back to summary |
|---|---|
| public abstract void setReasonPhrase(String reason) Set HTTP reason phrase. Warning The Reason Phrase is removed from HTTP/2 and from Servlet 6.
| |
| setStatus | back to summary |
|---|---|
| public abstract void setStatus(int status) Set HTTP status code for this response.
| |