Package org.eclipse.jetty.websocket.api
Interface UpgradeResponse
- All Known Subinterfaces:
JettyServerUpgradeResponse
- All Known Implementing Classes:
DelegatedJettyClientUpgradeResponse
,DelegatedServerUpgradeResponse
public interface UpgradeResponse
The HTTP Upgrade to WebSocket Response
-
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
-
Method Details
-
getAcceptedSubProtocol
String getAcceptedSubProtocol()Get the accepted WebSocket protocol.- Returns:
- the accepted WebSocket protocol.
-
getExtensions
List<ExtensionConfig> getExtensions()Get the list of extensions that should be used for the websocket.- Returns:
- the list of negotiated extensions to use.
-
getHeader
Get a header value- Parameters:
name
- the header name- Returns:
- the value (null if header doesn't exist)
-
getHeaderNames
Get the header names- Returns:
- the set of header names
-
getHeaders
Get the headers map- Returns:
- the map of headers
-
getHeaders
Get the multi-value header value- Parameters:
name
- the header name- Returns:
- the list of values (null if header doesn't exist)
-
getStatusCode
int getStatusCode()Get the HTTP Response Status Code- Returns:
- the status code
-