Class ServerUpgradeResponse
java.lang.Object
org.eclipse.jetty.websocket.core.server.ServerUpgradeResponse
Upgrade response used for websocket negotiation.
Allows setting of extensions and subprotocol without using headers directly.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtensions
(List<ExtensionConfig> configs) void
getHeaders
(String name) int
boolean
void
void
sendForbidden
(String message) void
setAcceptedSubProtocol
(String protocol) void
setExtensions
(List<ExtensionConfig> configs) void
void
void
setStatusCode
(int statusCode) toString()
-
Constructor Details
-
ServerUpgradeResponse
-
-
Method Details
-
addHeader
-
setHeader
-
setHeader
-
getAcceptedSubProtocol
-
getExtensions
-
getHeader
-
getHeaderNames
-
getHeadersMap
-
getHeaders
-
getStatusCode
public int getStatusCode() -
isCommitted
public boolean isCommitted() -
sendError
- Throws:
IOException
-
sendForbidden
- Throws:
IOException
-
setAcceptedSubProtocol
-
addExtensions
-
setExtensions
-
setStatusCode
public void setStatusCode(int statusCode) -
toString
-