Class WebSocketInitLoadConfigProperties

java.lang.Object
net.brabenetz.app.springstompserver.config.WebSocketInitLoadConfigProperties

@Component @ConfigurationProperties("spring-stomp-server.init-load") @Validated public class WebSocketInitLoadConfigProperties extends Object
Websocket Stomp Properties use in the WebSocketConfig.
  • Constructor Details

    • WebSocketInitLoadConfigProperties

      public WebSocketInitLoadConfigProperties()
  • Method Details

    • getDestinationPatterns

      public Pattern getDestinationPatterns()
      Gets the Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/..".

      Default is "^/user/[^/]+/topic/(.*)$".

      Returns:
      the Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/
    • setDestinationPatterns

      public void setDestinationPatterns(Pattern destinationPatterns)
      Sets the Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/..".

      Default is "^/user/[^/]+/topic/(.*)$".

      Parameters:
      destinationPatterns - the new Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/
    • getProxyUrl

      public String getProxyUrl()
      Gets the proxy url from where the init load should be get, like: "http://localhost:8181/my-mock-endpoint/${group-1}".

      Only GET requests are supported.
      ${group-1}, ${group-2}, ${group-3}, .. ${group-X} reference to the group-pattern from getDestinationPatterns().
      The Proxy-Server can then be a Mock-Server like https://wiremock.org/.

      Returns:
      the proxy url from where the init load should be get, like: "http://localhost:8181/my-mock-endpoint/${group-1}"
    • setProxyUrl

      public void setProxyUrl(String proxyUrl)
      Sets the proxy url from where the init load should be get, like: "http://localhost:8181/my-mock-endpoint/${group-1}".

      Only GET requests are supported.
      ${group-1}, ${group-2}, ${group-3}, .. ${group-X} reference to the group-pattern from getDestinationPatterns().
      The Proxy-Server can then be a Mock-Server like https://wiremock.org/.

      Parameters:
      proxyUrl - the new proxy url from where the init load should be get, like: "http://localhost:8181/my-mock-endpoint/${group-1}"