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, reject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, isCompleted, onCompletion, pollResult, timeout
public Reject(HttpResponse httpResponse)
The status code of `httpResponse` must not be 1xx or 2xx.
public HttpResponse getHttpResponse()