public class GetRateHandler extends Object implements RequestHandler
| Constructor and Description |
|---|
GetRateHandler(JSONRPC2Helper helper)GetRateHandler. |
| Modifier and Type | Method and Description |
|---|---|
String[] | handledRequests()Gets the names of the handled JSON-RPC 2.0 request methods. |
JSONRPC2Response | process(JSONRPC2Request req,
MessageContext ctx)Process a GetRate request |
public GetRateHandler(JSONRPC2Helper helper)
public String[] handledRequests()
RequestHandlerhandledRequests in interface RequestHandlerpublic JSONRPC2Response process(JSONRPC2Request req, MessageContext ctx)
process in interface RequestHandlerreq - A valid JSON-RPC 2.0 request instance. Must not be
null.ctx - Context information about the request message, may
be null if undefined.