org.springframework.messaging.simp.stomp

## Interface StompTcpConnectionHandler<P>

- Type Parameters:
    `P` - the type of payload for inbound and outbound messages
  All Superinterfaces:
    TcpConnectionHandler<P>
  All Known Subinterfaces:
    ConnectionHandlingStompSession
  All Known Implementing Classes:
    DefaultStompSession

      public interface StompTcpConnectionHandler<P>
      extends TcpConnectionHandler<P>

  A `TcpConnectionHandler` for use with STOMP connections, exposing further information about the connection.
  Since:
    5.3
  Author:
    Rossen Stoyanchev

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `StompHeaderAccessor` | `getConnectHeaders()` Return the headers that will be sent in the STOMP CONNECT frame.
    `String` | `getSessionId()` Return the `sessionId` associated with the STOMP connection.

    - ### Methods inherited from interface org.springframework.messaging.tcp.TcpConnectionHandler

      `afterConnected, afterConnectFailure, afterConnectionClosed, handleFailure, handleMessage`

- - ### Method Detail

    - #### getSessionId

          String getSessionId()

      Return the `sessionId` associated with the STOMP connection.

    - #### getConnectHeaders

          StompHeaderAccessor getConnectHeaders()

      Return the headers that will be sent in the STOMP CONNECT frame.