UpgradeResponsepublic class ClientUpgradeResponse extends UpgradeResponseAdapter
SEC_WEBSOCKET_PROTOCOL| Constructor | Description |
|---|---|
ClientUpgradeResponse() |
|
ClientUpgradeResponse(org.eclipse.jetty.client.HttpResponse response) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getAcceptedSubProtocol, getHeader, getHeaderNames, getHeaders, getHeaders, getStatusCode, getStatusReason, isSuccess, setAcceptedSubProtocol, setExtensions, setHeader, setStatusCode, setStatusReason, setSuccesspublic ClientUpgradeResponse()
public ClientUpgradeResponse(org.eclipse.jetty.client.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–2019 Webtide. All rights reserved.