Class SockJsUrlInfo

java.lang.Object
org.springframework.web.socket.sockjs.client.SockJsUrlInfo

public class SockJsUrlInfo extends Object
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 Details

    • SockJsUrlInfo

      public SockJsUrlInfo(URI sockJsUrl)
      Construct a new SockJsUrlInfo instance, calculating a random server id and session id if necessary.
      Parameters:
      sockJsUrl - the target URL
    • SockJsUrlInfo

      public SockJsUrlInfo(URI sockJsUrl, @Nullable String serverId, @Nullable String sessionId)
      Construct a new SockJsUrlInfo instance.
      Parameters:
      sockJsUrl - the target URL
      serverId - a pre-determined server id, if any
      sessionId - a pre-determined session id, if any
      Since:
      6.1.3
  • Method Details

    • getSockJsUrl

      public URI getSockJsUrl()
    • getServerId

      public String getServerId()
    • getSessionId

      public String getSessionId()
    • getUuid

      protected UUID getUuid()
    • getInfoUrl

      public URI getInfoUrl()
    • getTransportUrl

      public URI getTransportUrl(TransportType transportType)
    • toString

      public String toString()
      Overrides:
      toString in class Object