com.thetransactioncompany.jsonrpc2.server
Interface NotificationHandler


public interface NotificationHandler

Interface for handling JSON-RPC 2.0 notifications.

Version:
1.5 (2011-03-05)
Author:
Vladimir Dzhuvinov

Method Summary
 java.lang.String[] handledNotifications()
          Gets the JSON-RPC 2.0 notification method names that this handler processes.
 void process(com.thetransactioncompany.jsonrpc2.JSONRPC2Notification notification, MessageContext notificationCtx)
          Processes a JSON-RPC 2.0 notification.
 

Method Detail

handledNotifications

java.lang.String[] handledNotifications()
Gets the JSON-RPC 2.0 notification method names that this handler processes.

Returns:
The method names of the served JSON-RPC 2.0 notifications.

process

void process(com.thetransactioncompany.jsonrpc2.JSONRPC2Notification notification,
             MessageContext notificationCtx)
Processes a JSON-RPC 2.0 notification.

Parameters:
notification - A valid JSON-RPC 2.0 notification instance.
notificationCtx - Context information about the notification, may be null if undefined.


Copyright © 2010 - 2012 Vladimir Dzhuvinov. All Rights Reserved.