public class ClientUpgradeResponse extends UpgradeResponse
SEC_WEBSOCKET_PROTOCOL
Constructor and Description |
---|
ClientUpgradeResponse() |
Modifier and Type | Method and Description |
---|---|
void |
sendForbidden(String message)
Issue a forbidden upgrade response.
|
void |
validateWebSocketHash(String expectedHash) |
addHeader, getAcceptedSubProtocol, getExtensions, getHeader, getHeaderNames, getHeaders, getHeaders, getStatusCode, getStatusReason, isSuccess, setAcceptedSubProtocol, setExtensions, setHeader, setStatusCode, setStatusReason, setSuccess
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 validateWebSocketHash(String expectedHash) throws UpgradeException
UpgradeException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.