Class HvlNotificationStompWsRestController
java.lang.Object
tr.com.havelsan.javarch.notification.stomp.ws.starter.controller.HvlNotificationStompWsRestController
- All Implemented Interfaces:
HvlNotificationStompWsRestService
@RestController
@RequestMapping("${hvl.notification.ws.stomp.service.controller-path:/stompws}")
@HvlActuatorService(name="HvlNotificationStompWsRestService",
groupName="HvlNotificationStompWs")
public class HvlNotificationStompWsRestController
extends Object
implements HvlNotificationStompWsRestService
The class in which service endpoints are defined for notification web socket operations.
-
Constructor Summary
ConstructorDescriptionHvlNotificationStompWsRestController
(HvlNotificationStompWsService notificationStompWsService) Instantiates a new HvlNotificationStompWsRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> notify
(@NotNull @Valid HvlNotificationStompWsMessage stompWsMessage) Sends notification.
-
Constructor Details
-
HvlNotificationStompWsRestController
public HvlNotificationStompWsRestController(HvlNotificationStompWsService notificationStompWsService) Instantiates a new HvlNotificationStompWsRestController.- Parameters:
notificationStompWsService
- the notification stomp ws service
-
-
Method Details
-
notify
public tr.com.havelsan.javarch.service.data.HvlResponse<Void> notify(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationStompWsMessage stompWsMessage) throws HvlNotificationStompWsException Sends notification.- Specified by:
notify
in interfaceHvlNotificationStompWsRestService
- Parameters:
stompWsMessage
- ex. user/xx,announcement- Returns:
- HvlResponse the hvl response
- Throws:
HvlNotificationStompWsException
- the hvl notification stomp ws exception
-