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