public static class WebSocketResponse.Reject extends WebSocketResponse implements AutoAsync<WebSocketResponse>
A Reject response contains an HTTP response; the response status code indicates the reason for rejection.
Note that this class is a subtype of Async<WebSocketResponse>.
WebSocketResponse.reject(int, String)WebSocketResponse.Accept, WebSocketResponse.Reject| Constructor and Description |
|---|
Reject(HttpResponse httpResponse)
Create a Reject response.
|
| Instance Method | |
|---|---|
HttpResponse |
getHttpResponse()
The HTTP response.
|
accept, rejectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCompleted, onCompletion, pollResult, timeoutpublic Reject(HttpResponse httpResponse)
The status code of `httpResponse` must not be 1xx or 2xx.
public HttpResponse getHttpResponse()