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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/..".Gets the proxy url from where the init load should be get, like: "http://localhost:8181/my-mock-endpoint/${group-1}".void
setDestinationPatterns
(Pattern destinationPatterns) Sets the Websocket Subscription destination pattern like "/user/00001111-2222-3333-4444-555566667777/topic/..".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}".
-
Constructor Details
-
WebSocketInitLoadConfigProperties
public WebSocketInitLoadConfigProperties()
-
-
Method Details
-
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
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
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 fromgetDestinationPatterns()
.
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
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 fromgetDestinationPatterns()
.
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}"
-