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, setSuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addHeader, setStatusCode, setStatusReason
public ByteBuffer getRemainingBuffer()
public void sendForbidden(String message) throws IOException
UpgradeResponse
This 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 UpgradeResponse
message
- the short 1 line detail message about the forbidden responseIOException
public void setRemainingBuffer(ByteBuffer remainingBuffer)
setRemainingBuffer
in interface HttpResponseHeaderParseListener
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.