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

public Interface UpgradeResponse

Imports
java.util.List, .Map, .Set

The HTTP Upgrade to WebSocket Response

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the accepted WebSocket protocol.
getAcceptedSubProtocol
()

Get the accepted WebSocket protocol.

public List<ExtensionConfig>

Returns:

the list of negotiated extensions to use.
getExtensions
()

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

public String

Returns:

the value (null if header doesn't exist)
getHeader
(String
the header name
name
)

Get a header value

public Set<String>

Returns:

the set of header names
getHeaderNames
()

Get the header names

public Map<String, List<String>>

Returns:

the map of headers
getHeaders
()

Get the headers map

public List<String>

Returns:

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

Get the multi-value header value

public int

Returns:

the status code
getStatusCode
()

Get the HTTP Response Status Code

Method Detail

getAcceptedSubProtocolback to summary
public String getAcceptedSubProtocol()

Get the accepted WebSocket protocol.

Returns:String

the accepted WebSocket protocol.

getExtensionsback to summary
public List<ExtensionConfig> getExtensions()

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

Returns:List<ExtensionConfig>

the list of negotiated extensions to use.

getHeaderback to summary
public String getHeader(String name)

Get a header value

Parameters
name:String

the header name

Returns:String

the value (null if header doesn't exist)

getHeaderNamesback to summary
public Set<String> getHeaderNames()

Get the header names

Returns:Set<String>

the set of header names

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

Get the headers map

Returns:Map<String, List<String>>

the map of headers

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

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)

getStatusCodeback to summary
public int getStatusCode()

Get the HTTP Response Status Code

Returns:int

the status code