Class ServerUpgradeResponseImpl
java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.websocket.core.server.internal.ServerUpgradeResponseImpl
- All Implemented Interfaces:
Content.Sink
,Response
,ServerUpgradeResponse
Upgrade response used for websocket negotiation.
Allows setting of extensions and subprotocol without using headers directly.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Response
Response.Wrapper
-
Constructor Summary
ConstructorDescriptionServerUpgradeResponseImpl
(WebSocketNegotiation negotiation, Response baseResponse) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtensions
(List<ExtensionConfig> configs) void
removeExtensions
(List<ExtensionConfig> configs) void
setAcceptedSubProtocol
(String protocol) void
setExtensions
(List<ExtensionConfig> configs) toString()
Methods inherited from class org.eclipse.jetty.server.Response.Wrapper
getRequest, getStatus, getTrailersSupplier, getWrapped, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, write, writeInterim
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.server.Response
getRequest, getStatus, getTrailersSupplier, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, write, writeInterim
-
Constructor Details
-
ServerUpgradeResponseImpl
-
-
Method Details
-
getHeaders
- Specified by:
getHeaders
in interfaceResponse
- Overrides:
getHeaders
in classResponse.Wrapper
- Returns:
- the response HTTP headers
-
getAcceptedSubProtocol
- Specified by:
getAcceptedSubProtocol
in interfaceServerUpgradeResponse
-
setAcceptedSubProtocol
- Specified by:
setAcceptedSubProtocol
in interfaceServerUpgradeResponse
-
getExtensions
- Specified by:
getExtensions
in interfaceServerUpgradeResponse
-
addExtensions
- Specified by:
addExtensions
in interfaceServerUpgradeResponse
-
removeExtensions
- Specified by:
removeExtensions
in interfaceServerUpgradeResponse
-
setExtensions
- Specified by:
setExtensions
in interfaceServerUpgradeResponse
-
toString
-