com.thetransactioncompany.jsonrpc2.server
Interface RequestHandler


public interface RequestHandler

Interface for handling JSON-RPC 2.0 requests.

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

Method Summary
 java.lang.String[] handledRequests()
          Gets the JSON-RPC 2.0 request method names that this handler processes.
 com.thetransactioncompany.jsonrpc2.JSONRPC2Response process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request, MessageContext requestCtx)
          Processes a JSON-RPC 2.0 request.
 

Method Detail

handledRequests

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

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

process

com.thetransactioncompany.jsonrpc2.JSONRPC2Response process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request,
                                                            MessageContext requestCtx)
Processes a JSON-RPC 2.0 request.

Parameters:
request - A valid JSON-RPC 2.0 request instance.
requestCtx - Context information about the request, may be null if undefined.
Returns:
The resulting JSON-RPC 2.0 response.


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