Class ServerUpgradeResponseDelegate
java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.websocket.server.internal.ServerUpgradeResponseDelegate
- All Implemented Interfaces:
Content.Sink
,Response
,ServerUpgradeResponse
public class ServerUpgradeResponseDelegate
extends Response.Wrapper
implements ServerUpgradeResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Response
Response.Wrapper
-
Constructor Summary
ConstructorDescriptionServerUpgradeResponseDelegate
(ServerUpgradeRequest request, ServerUpgradeResponse wrapped) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAcceptedSubProtocol
(String protocol) Set the negotiated sub-protocol.void
setExtensions
(List<ExtensionConfig> configs) Set the list of negotiated extensions.Methods inherited from class org.eclipse.jetty.server.Response.Wrapper
getHeaders, getRequest, getStatus, getTrailersSupplier, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, write, writeInterim
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.server.Response
getHeaders, getRequest, getStatus, getTrailersSupplier, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, write, writeInterim
-
Constructor Details
-
ServerUpgradeResponseDelegate
-
-
Method Details
-
getWrapped
- Overrides:
getWrapped
in classResponse.Wrapper
-
getAcceptedSubProtocol
- Specified by:
getAcceptedSubProtocol
in interfaceServerUpgradeResponse
- Returns:
- the negotiated sub-protocol
-
setAcceptedSubProtocol
Description copied from interface:ServerUpgradeResponse
Set the negotiated sub-protocol.- Specified by:
setAcceptedSubProtocol
in interfaceServerUpgradeResponse
- Parameters:
protocol
- the negotiated sub-protocol
-
getExtensions
- Specified by:
getExtensions
in interfaceServerUpgradeResponse
- Returns:
- the list of negotiated extensions
-
setExtensions
Description copied from interface:ServerUpgradeResponse
Set the list of negotiated extensions.- Specified by:
setExtensions
in interfaceServerUpgradeResponse
- Parameters:
configs
- the list of negotiated extensions
-