Class DelegatedJettyClientUpgradeResponse
java.lang.Object
org.eclipse.jetty.websocket.client.impl.DelegatedJettyClientUpgradeResponse
- All Implemented Interfaces:
UpgradeResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accepted WebSocket protocol.Get the list of extensions that should be used for the websocket.Get a header valueGet the header namesGet the headers mapgetHeaders
(String name) Get the multi-value header valueint
Get the HTTP Response Status Code
-
Constructor Details
-
DelegatedJettyClientUpgradeResponse
-
-
Method Details
-
getAcceptedSubProtocol
Description copied from interface:UpgradeResponse
Get the accepted WebSocket protocol.- Specified by:
getAcceptedSubProtocol
in interfaceUpgradeResponse
- Returns:
- the accepted WebSocket protocol.
-
getHeader
Description copied from interface:UpgradeResponse
Get a header value- Specified by:
getHeader
in interfaceUpgradeResponse
- Parameters:
name
- the header name- Returns:
- the value (null if header doesn't exist)
-
getHeaderNames
Description copied from interface:UpgradeResponse
Get the header names- Specified by:
getHeaderNames
in interfaceUpgradeResponse
- Returns:
- the set of header names
-
getHeaders
Description copied from interface:UpgradeResponse
Get the multi-value header value- Specified by:
getHeaders
in interfaceUpgradeResponse
- Parameters:
name
- the header name- Returns:
- the list of values (null if header doesn't exist)
-
getHeaders
Description copied from interface:UpgradeResponse
Get the headers map- Specified by:
getHeaders
in interfaceUpgradeResponse
- Returns:
- the map of headers
-
getStatusCode
public int getStatusCode()Description copied from interface:UpgradeResponse
Get the HTTP Response Status Code- Specified by:
getStatusCode
in interfaceUpgradeResponse
- Returns:
- the status code
-
getExtensions
Description copied from interface:UpgradeResponse
Get the list of extensions that should be used for the websocket.- Specified by:
getExtensions
in interfaceUpgradeResponse
- Returns:
- the list of negotiated extensions to use.
-