Simple server framework for processing JSON-RPC 2.0 requests and notifications.
requestand / or
notificationhandlers for the various expected JSON-RPC 2.0 messages. A handler may process one or more request/notification methods (identified by method name).
- Create a new
Dispatcherand register the handlers with it.
- Pass the received JSON-RPC 2.0 requests and notifications to the
Dispatcher.dispatch(...)method, then, if the message is a request, pass the resulting JSON-RPC 2.0 response back to the client.
Direct package dependencies:
- Vladimir Dzhuvinov
Interface Summary Interface Description NotificationHandlerInterface for handling JSON-RPC 2.0 notifications. RequestHandlerInterface for handling JSON-RPC 2.0 requests.
Class Summary Class Description DispatcherDispatcher for JSON-RPC 2.0 requests and notifications. MessageContextContext information about JSON-RPC 2.0 request and notification messages.