Class WsHandshakeResponse
java.lang.Object
org.apache.tomcat.websocket.WsHandshakeResponse
- All Implemented Interfaces:
HandshakeResponse
Represents the response to a WebSocket handshake.
-
Field Summary
Fields inherited from interface HandshakeResponse
SEC_WEBSOCKET_ACCEPT -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.WsHandshakeResponse(Map<String, List<String>> headers) Creates a handshake response from the given headers. -
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP headers from the handshake response.
-
Constructor Details
-
WsHandshakeResponse
public WsHandshakeResponse()Default constructor. -
WsHandshakeResponse
-
-
Method Details
-
getHeaders
Description copied from interface:jakarta.websocket.HandshakeResponseReturns the HTTP headers from the handshake response.- Specified by:
getHeadersin interfaceHandshakeResponse- Returns:
- The HTTP headers
-