
com.thetransactioncompany.jsonrpc2.server.NotificationHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsonrpc2-server Show documentation
Show all versions of jsonrpc2-server Show documentation
Simple server framework for processing JSON-RPC 2.0
requests and notifications.
The newest version!
package com.thetransactioncompany.jsonrpc2.server;
import com.thetransactioncompany.jsonrpc2.JSONRPC2Notification;
/**
* Interface for handling JSON-RPC 2.0 notifications.
*
* @author Vladimir Dzhuvinov
*/
public interface NotificationHandler {
/**
* Gets the names of the handled JSON-RPC 2.0 notification methods.
*
* @return The names of the handled JSON-RPC 2.0 notification methods.
*/
String[] handledNotifications();
/**
* Processes a JSON-RPC 2.0 notification.
*
* Note that JSON-RPC 2.0 notifications don't produce a response!
*
* @param notification A valid JSON-RPC 2.0 notification instance.
* Must not be {@code null}.
* @param notificationCtx Context information about the notification
* message, may be {@code null} if undefined.
*/
void process(final JSONRPC2Notification notification, final MessageContext notificationCtx);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy