Interface NotificationHandler
-
- All Known Implementing Classes:
Dispatcher
public interface NotificationHandlerInterface for handling JSON-RPC 2.0 notifications.- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]handledNotifications()Gets the names of the handled JSON-RPC 2.0 notification methods.voidprocess(JSONRPC2Notification notification, MessageContext notificationCtx)Processes a JSON-RPC 2.0 notification.
-
-
-
Method Detail
-
handledNotifications
String[] handledNotifications()
Gets the names of the handled JSON-RPC 2.0 notification methods.- Returns:
- The names of the handled JSON-RPC 2.0 notification methods.
-
process
void process(JSONRPC2Notification notification, MessageContext notificationCtx)
Processes a JSON-RPC 2.0 notification.Note that JSON-RPC 2.0 notifications don't produce a response!
- Parameters:
notification- A valid JSON-RPC 2.0 notification instance. Must not benull.notificationCtx- Context information about the notification message, may benullif undefined.
-
-