Class WsHandshakeResponse

  • All Implemented Interfaces:
    HandshakeResponse

    public class WsHandshakeResponse
    extends java.lang.Object
    implements HandshakeResponse
    Represents the response to a WebSocket handshake.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsHandshakeResponse()
      Default constructor.
      WsHandshakeResponse​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers)
      Creates a handshake response from the given headers.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Returns the HTTP headers from the handshake response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WsHandshakeResponse

        public WsHandshakeResponse()
        Default constructor.
      • WsHandshakeResponse

        public WsHandshakeResponse​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers)
        Creates a handshake response from the given headers.
        Parameters:
        headers - the response headers
    • Method Detail

      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
        Description copied from interface: jakarta.websocket.HandshakeResponse
        Returns the HTTP headers from the handshake response.
        Specified by:
        getHeaders in interface HandshakeResponse
        Returns:
        The HTTP headers