Top Description Fields Constructors Methods
org.eclipse.jetty.websocket.client.internal

public Class DelegatedJettyClientUpgradeResponse

extends Object
implements UpgradeResponse
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.websocket.api.UpgradeResponse
Imports
java.util.ArrayList, .Collections, .List, .Map, .Set, java.util.stream.Collectors, org.eclipse.jetty.client.Response, org.eclipse.jetty.http.HttpHeader, org.eclipse.jetty.websocket.api.ExtensionConfig, .UpgradeResponse

Representing the Jetty org.eclipse.jetty.client.Response in the UpgradeResponse interface.

Field Summary

Modifier and TypeField and Description
private final Response

Constructor Summary

AccessConstructor and Description
public

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 List<String>
getHeaders(String
the header name
name
)

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

Get the multi-value header value

public Map<String, List<String>>
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final Response delegate

Constructor Detail

DelegatedJettyClientUpgradeResponseback to summary
public DelegatedJettyClientUpgradeResponse(Response 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 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
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
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