Interface TransportHandler

All Known Implementing Classes:
AbstractHttpReceivingTransportHandler, AbstractHttpSendingTransportHandler, AbstractTransportHandler, EventSourceTransportHandler, HtmlFileTransportHandler, WebSocketTransportHandler, XhrPollingTransportHandler, XhrReceivingTransportHandler, XhrStreamingTransportHandler

public interface TransportHandler
Handle a SockJS session URL, i.e. transport-specific request.
Since:
4.0
Author:
Rossen Stoyanchev, Juergen Hoeller
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check whether the type of the given session matches the transport type of this TransportHandler where session id and the transport type are extracted from the SockJS URL.
    Return the transport type supported by this handler.
    void
    handleRequest(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response, WebSocketHandler handler, SockJsSession session)
    Handle the given request and delegate messages to the provided WebSocketHandler.
    void
    Initialize this handler with the given configuration.