Class DelegatedServerUpgradeResponse
java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.websocket.server.internal.DelegatedServerUpgradeResponse
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink, org.eclipse.jetty.server.Response, ServerUpgradeResponse
public class DelegatedServerUpgradeResponse
extends org.eclipse.jetty.server.Response.Wrapper
implements ServerUpgradeResponse
Internal implementation of the
ServerUpgradeResponse interface
which delegates to the websocket-core ServerUpgradeResponse.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Response
org.eclipse.jetty.server.Response.Wrapper -
Constructor Summary
ConstructorsConstructorDescriptionDelegatedServerUpgradeResponse(org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest request, org.eclipse.jetty.websocket.core.server.ServerUpgradeResponse wrapped) -
Method Summary
Modifier and TypeMethodDescriptionList<org.eclipse.jetty.websocket.api.ExtensionConfig> org.eclipse.jetty.websocket.core.server.ServerUpgradeResponsevoidsetAcceptedSubProtocol(String protocol) Set the negotiated sub-protocol.voidsetExtensions(List<org.eclipse.jetty.websocket.api.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 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
-
DelegatedServerUpgradeResponse
public DelegatedServerUpgradeResponse(org.eclipse.jetty.websocket.core.server.ServerUpgradeRequest request, org.eclipse.jetty.websocket.core.server.ServerUpgradeResponse wrapped)
-
-
Method Details
-
getWrapped
public org.eclipse.jetty.websocket.core.server.ServerUpgradeResponse getWrapped()- Overrides:
getWrappedin classorg.eclipse.jetty.server.Response.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
-