forked from I2P_Developers/i2p.i2p
Includes mods to use org.json.simple package. See licenses/LICENSE-Apache2.0.txt Includes jBCrypt: Copyright (c) 2006 Damien Miller <djm@mindrot.org> See licenses/LICENSE-jBCrypt.txt Includes jsonrpc2 libs: See licenses/LICENSE-Apache2.0.txt http://software.dzhuvinov.com/json-rpc-2.0-server.html Jars from maven central: jsonrpc2-base-1.38.1-sources.jar 22-Oct-2017 jsonrpc2-server-1.11-sources.jar 16-Mar-2015
36 lines
955 B
Java
36 lines
955 B
Java
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.
|
|
*/
|
|
public String[] handledNotifications();
|
|
|
|
|
|
/**
|
|
* Processes a JSON-RPC 2.0 notification.
|
|
*
|
|
* <p>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.
|
|
*/
|
|
public void process(final JSONRPC2Notification notification, final MessageContext notificationCtx);
|
|
|
|
}
|