Class SockJsUrlInfo
java.lang.Object
org.springframework.web.socket.sockjs.client.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.- Since:
- 4.1
- Author:
- Rossen Stoyanchev, Juergen Hoeller
-
Constructor Summary
ConstructorsConstructorDescriptionSockJsUrlInfo(URI sockJsUrl) Construct a newSockJsUrlInfoinstance, calculating a random server id and session id if necessary.SockJsUrlInfo(URI sockJsUrl, String serverId, String sessionId) Construct a newSockJsUrlInfoinstance. -
Method Summary
Modifier and TypeMethodDescriptiongetTransportUrl(TransportType transportType) protected UUIDgetUuid()toString()
-
Constructor Details
-
SockJsUrlInfo
Construct a newSockJsUrlInfoinstance, calculating a random server id and session id if necessary.- Parameters:
sockJsUrl- the target URL
-
SockJsUrlInfo
Construct a newSockJsUrlInfoinstance.- Parameters:
sockJsUrl- the target URLserverId- a pre-determined server id, if anysessionId- a pre-determined session id, if any- Since:
- 6.1.3
-
-
Method Details