Top Fields Constructors Methods
org.eclipse.jetty.websocket.server.internal

pack-priv Class UpgradeResponseDelegate

extends Object
implements UpgradeResponse
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.websocket.api.UpgradeResponse
Imports
java.util.LinkedHashMap, .List, .Map, .Set, java.util.stream.Collectors, org.eclipse.jetty.http.HttpField, .HttpFields, org.eclipse.jetty.websocket.api.ExtensionConfig, .UpgradeResponse, org.eclipse.jetty.websocket.common.JettyExtensionConfig, org.eclipse.jetty.websocket.core.server.ServerUpgradeResponse

Field Summary

Modifier and TypeField and Description
private final ServerUpgradeResponse

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
public List<ExtensionConfig>
getExtensions()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getExtensions.

Get the list of extensions that should be used for the websocket.

public String
getHeader(String
the header name
name
)

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeader.

Get a header value

public Set<String>
public Map<String, List<String>>
public List<String>
getHeaders(String
the header name
name
)

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaders.

Get the multi-value header value

public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

responseback to summary
private final ServerUpgradeResponse response

Constructor Detail

UpgradeResponseDelegateback to summary
pack-priv UpgradeResponseDelegate(ServerUpgradeResponse response)

Method Detail

getAcceptedSubProtocolback to summary
public String getAcceptedSubProtocol()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getAcceptedSubProtocol.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getAcceptedSubProtocol.

Get the accepted WebSocket protocol.

Returns:String

the accepted WebSocket protocol.

Annotations
@Override
getExtensionsback to summary
public List<ExtensionConfig> getExtensions()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getExtensions.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getExtensions.

Get the list of extensions that should be used for the websocket.

Returns:List<ExtensionConfig>

the list of negotiated extensions to use.

Annotations
@Override
getHeaderback to summary
public String getHeader(String name)

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeader.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getHeader.

Get a header value

Parameters
name:String

the header name

Returns:String

the value (null if header doesn't exist)

Annotations
@Override
getHeaderNamesback to summary
public Set<String> getHeaderNames()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaderNames.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaderNames.

Get the header names

Returns:Set<String>

the set of header names

Annotations
@Override
getHeadersback to summary
public Map<String, List<String>> getHeaders()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaders.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaders.

Get the headers map

Returns:Map<String, List<String>>

the map of headers

Annotations
@Override
getHeadersback to summary
public List<String> getHeaders(String name)

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaders.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getHeaders.

Get the multi-value header value

Parameters
name:String

the header name

Returns:List<String>

the list of values (null if header doesn't exist)

Annotations
@Override
getStatusCodeback to summary
public int getStatusCode()

Implements org.eclipse.jetty.websocket.api.UpgradeResponse.getStatusCode.

Doc from org.eclipse.jetty.websocket.api.UpgradeResponse.getStatusCode.

Get the HTTP Response Status Code

Returns:int

the status code

Annotations
@Override