Top Description Interfaces Classes
module spring.websocket

Package org.springframework.web.socket.sockjs.client

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

SockJS client implementation of org.springframework.web.socket.client.WebSocketClient.

Interface Summary

Modifier and TypeInterface and Description
public interface
InfoReceiver

A component that can execute the SockJS "Info" request that needs to be performed before the SockJS session starts in order to check server endpoint capabilities such as whether the endpoint permits use of WebSocket.

public interface
Transport

A client-side implementation for a SockJS transport.

public interface
TransportRequest

Exposes information, typically to Transport and session implementations, about a request to connect to a SockJS server endpoint over a given transport.

public interface
XhrTransport

A SockJS Transport that uses HTTP requests to simulate a WebSocket interaction.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractClientSockJsSession

Base class for SockJS client implementations of WebSocketSession.

public abstract class
AbstractXhrTransport

Abstract base class for XHR transport implementations to extend.

pack-priv class
DefaultTransportRequest

A default implementation of TransportRequest.

public class
JettyXhrTransport

An XHR transport based on Jetty's org.eclipse.jetty.client.HttpClient.

public class
RestTemplateXhrTransport

An XhrTransport implementation that uses a RestTemplate.

public class
SockJsClient

A SockJS implementation of WebSocketClient with fallback alternatives that simulate a WebSocket interaction through plain HTTP streaming and long polling techniques.

public class
SockJsUrlInfo

Container for the base URL of a SockJS endpoint with additional helper methods to derive related SockJS URLs: specifically, the info and transport URLs.

public class
UndertowXhrTransport

An XHR transport based on Undertow's io.undertow.client.UndertowClient.

public class
WebSocketClientSockJsSession

An extension of AbstractClientSockJsSession wrapping and delegating to an actual WebSocket session.

public class
public class
XhrClientSockJsSession

An extension of AbstractClientSockJsSession for use with HTTP transports simulating a WebSocket session.