@Controller
@Profile(value={"paywall_local","integration_paywall_local"})
@Conditional(value=EnableWebSocketCondition.class)
public class LocalWebSocketController
extends java.lang.Object
It listens on the queue "/queue/paywall/checksettlement/{preImageHash}" and sends a settlements response or error response on the soecket.
| Constructor and Description |
|---|
LocalWebSocketController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
subscribe(java.lang.String preImageHash,
java.lang.String token)
Subscribe method in charge of handling web socket connection and setup.
|
@SubscribeMapping(value="/queue/paywall/checksettlement/{preImageHash}")
public java.lang.String subscribe(@DestinationVariable(value="preImageHash")
java.lang.String preImageHash,
@Header(value="token")
java.lang.String token)
preImageHash - the preImageHash in base64 encoded String as part of the
destination variable.token - the token header variable set in the WebSocket call.