Top Description Methods
org.eclipse.jetty.websocket.server

public Interface ServerUpgradeResponse

extends Response
Known Direct Implementers
org.eclipse.jetty.websocket.server.internal.ServerUpgradeResponseDelegate
Imports
java.util.List, org.eclipse.jetty.server.Response, org.eclipse.jetty.websocket.api.ExtensionConfig

The HTTP response to upgrade to WebSocket.

An instance of this class is given as a parameter to a WebSocketCreator, so that applications can interact with the response.

Method Summary

Modifier and TypeMethod and Description
public String
getAcceptedSubProtocol()

Returns: the negotiated sub-protocol

public List<ExtensionConfig>
getExtensions()

Returns: the list of negotiated extensions

public void
setAcceptedSubProtocol(String
the negotiated sub-protocol
protocol
)

Set the negotiated sub-protocol.

public void
setExtensions(List<ExtensionConfig>
the list of negotiated extensions
configs
)

Set the list of negotiated extensions.

Inherited from org.eclipse.jetty.server.Response:
addCookieasasBufferedOutputStreamasBufferedSinkgetContentBytesWrittengetHeadersgetOriginalResponsegetRequestgetStatusgetTrailersSupplierhasLastWriteisCommittedisCompletedSuccessfullynewTrailersChunkProcessorputCookiereplaceCookieresetsendRedirectsendRedirectsendRedirectsetStatussetTrailersSuppliertoRedirectURIwritewriteErrorwriteErrorwriteErrorwriteErrorwriteInterim

Method Detail

getAcceptedSubProtocolback to summary
public String getAcceptedSubProtocol()
Returns:String

the negotiated sub-protocol

getExtensionsback to summary
public List<ExtensionConfig> getExtensions()
Returns:List<ExtensionConfig>

the list of negotiated extensions

setAcceptedSubProtocolback to summary
public void setAcceptedSubProtocol(String protocol)

Set the negotiated sub-protocol.

Parameters
protocol:String

the negotiated sub-protocol

setExtensionsback to summary
public void setExtensions(List<ExtensionConfig> configs)

Set the list of negotiated extensions.

Parameters
configs:List<ExtensionConfig>

the list of negotiated extensions