public interface TransportHandler
Modifier and Type | Method and Description |
---|---|
TransportType |
getTransportType()
Return the transport type supported by this handler.
|
void |
handleRequest(ServerHttpRequest request,
ServerHttpResponse response,
WebSocketHandler handler,
SockJsSession session)
Handle the given request and delegate messages to the provided
WebSocketHandler . |
void |
initialize(SockJsServiceConfig serviceConfig)
Initialize this handler with the given configuration.
|
void initialize(SockJsServiceConfig serviceConfig)
serviceConfig
- the configuration as defined by the containing
SockJsService
TransportType getTransportType()
void handleRequest(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler handler, SockJsSession session) throws SockJsException
WebSocketHandler
.request
- the current requestresponse
- the current responsehandler
- the target WebSocketHandler (never null
)session
- the SockJS session (never null
)SockJsException
- raised when request processing fails as
explained in SockJsService