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
ConstructorsConstructorDescriptionServerUpgradeResponseDelegate(ServerUpgradeRequest request, ServerUpgradeResponse wrapped) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAcceptedSubProtocol(String protocol) Set the negotiated sub-protocol.voidsetExtensions(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, writeInterimMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getWrappedin classResponse.Wrapper
-
getAcceptedSubProtocol
- Specified by:
getAcceptedSubProtocolin interfaceServerUpgradeResponse- Returns:
- the negotiated sub-protocol
-
setAcceptedSubProtocol
Description copied from interface:ServerUpgradeResponseSet the negotiated sub-protocol.- Specified by:
setAcceptedSubProtocolin interfaceServerUpgradeResponse- Parameters:
protocol- the negotiated sub-protocol
-
getExtensions
- Specified by:
getExtensionsin interfaceServerUpgradeResponse- Returns:
- the list of negotiated extensions
-
setExtensions
Description copied from interface:ServerUpgradeResponseSet the list of negotiated extensions.- Specified by:
setExtensionsin interfaceServerUpgradeResponse- Parameters:
configs- the list of negotiated extensions
-