public class ClientUpgradeResponse extends UpgradeResponseAdapter
SEC_WEBSOCKET_PROTOCOL| Constructor and Description |
|---|
ClientUpgradeResponse() |
ClientUpgradeResponse(HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ExtensionConfig> |
getExtensions()
Get the list of extensions that should be used for the websocket.
|
void |
sendForbidden(java.lang.String message)
Issue a forbidden upgrade response.
|
addHeader, getAcceptedSubProtocol, getHeader, getHeaderNames, getHeaders, getHeaders, getStatusCode, getStatusReason, isSuccess, setAcceptedSubProtocol, setExtensions, setHeader, setStatusCode, setStatusReason, setSuccesspublic ClientUpgradeResponse()
public ClientUpgradeResponse(HttpResponse response)
public java.util.List<ExtensionConfig> getExtensions()
UpgradeResponseAdaptergetExtensions in interface UpgradeResponsegetExtensions in class UpgradeResponseAdapterpublic void sendForbidden(java.lang.String message)
throws java.io.IOException
UpgradeResponseAdapterThis 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 interface UpgradeResponsesendForbidden in class UpgradeResponseAdaptermessage - the short 1 line detail message about the forbidden responsejava.io.IOException - if unable to send the forbiddenCopyright © 1995–2023 Webtide. All rights reserved.