public class RouterInfoHandler extends Object implements RequestHandler
| Constructor and Description |
|---|
RouterInfoHandler(RouterContext ctx,
JSONRPC2Helper helper) |
| 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)
Processes a JSON-RPC 2.0 request.
|
public RouterInfoHandler(RouterContext ctx, JSONRPC2Helper helper)
public String[] handledRequests()
RequestHandlerhandledRequests in interface RequestHandlerpublic JSONRPC2Response process(JSONRPC2Request req, MessageContext ctx)
RequestHandlerprocess 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.