ContextType - Service request context type.public static class ReturningMethod.RequestHandler<ContextType extends ContextInterface> extends Object implements Dispatcher.RequestHandler<ContextType>
| Constructor and Description |
|---|
RequestHandler(ReturningMethod<? super ContextType> method)
Initializes method wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
com.thetransactioncompany.jsonrpc2.JSONRPC2Response |
process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request,
ContextType context)
Handles request.
|
public RequestHandler(ReturningMethod<? super ContextType> method)
method - RPC method.public com.thetransactioncompany.jsonrpc2.JSONRPC2Response process(com.thetransactioncompany.jsonrpc2.JSONRPC2Request request,
ContextType context)
throws com.thetransactioncompany.jsonrpc2.JSONRPC2Error
process in interface Dispatcher.RequestHandler<ContextType extends ContextInterface>request - Request call.context - Execution context.com.thetransactioncompany.jsonrpc2.JSONRPC2Error - Error during JSON-RPC call handling.Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.