WsHandshakeResponse (Apache Tomcat 9.0.118 API Documentation)
Description: declaration: package: org.apache.tomcat.websocket, class: WsHandshakeResponse

# Class WsHandshakeResponse

java.lang.Object
org.apache.tomcat.websocket.WsHandshakeResponse

All Implemented Interfaces:
  `HandshakeResponse`

public class WsHandshakeResponse extends Object implements HandshakeResponse
Represents the response to a WebSocket handshake.

- ## Field Summary

  ### Fields inherited from interface HandshakeResponse

  `SEC_WEBSOCKET_ACCEPT`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WsHandshakeResponse()`
  `WsHandshakeResponse(Map<String, List<String>> headers)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String, List<String>>`
  `getHeaders()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WsHandshakeResponse

    public WsHandshakeResponse()

  - ### WsHandshakeResponse

    public WsHandshakeResponse(Map<String, List<String>> headers)

- ## Method Details

  - ### getHeaders

    public Map<String, List<String>> getHeaders()
    Specified by:
      `getHeaders` in interface `HandshakeResponse`