public class ClientUpgradeResponse extends UpgradeResponse implements HttpResponseHeaderParseListener
SEC_WEBSOCKET_PROTOCOL| Constructor and Description |
|---|
ClientUpgradeResponse() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getRemainingBuffer() |
void |
sendForbidden(String message)
Issue a forbidden upgrade response.
|
void |
setRemainingBuffer(ByteBuffer remainingBuffer) |
addHeader, getAcceptedSubProtocol, getExtensions, getHeader, getHeaderNames, getHeaders, getHeaders, getStatusCode, getStatusReason, isSuccess, setAcceptedSubProtocol, setExtensions, setHeader, setStatusCode, setStatusReason, setSuccessclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, setStatusCode, setStatusReasonpublic ByteBuffer getRemainingBuffer()
public void sendForbidden(String message) throws IOException
UpgradeResponseThis means that the websocket endpoint was valid, but the conditions to use a WebSocket resulted in a forbidden access.
Use this when the origin or authentication is invalid.
sendForbidden in class UpgradeResponsemessage - the short 1 line detail message about the forbidden responseIOExceptionpublic void setRemainingBuffer(ByteBuffer remainingBuffer)
setRemainingBuffer in interface HttpResponseHeaderParseListenerCopyright © 1995-2015 Webtide. All Rights Reserved.