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
ConstructorDescriptionSockJsUrlInfo
(URI sockJsUrl) Construct a newSockJsUrlInfo
instance, calculating a random server id and session id if necessary.SockJsUrlInfo
(URI sockJsUrl, String serverId, String sessionId) Construct a newSockJsUrlInfo
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetTransportUrl
(TransportType transportType) protected UUID
getUuid()
toString()
-
Constructor Details
-
SockJsUrlInfo
Construct a newSockJsUrlInfo
instance, calculating a random server id and session id if necessary.- Parameters:
sockJsUrl
- the target URL
-
SockJsUrlInfo
Construct a newSockJsUrlInfo
instance.- 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