public class I2PControlHandler extends Object implements RequestHandler
| Constructor and Description |
|---|
I2PControlHandler(RouterContext ctx,
JSONRPC2Helper helper,
SecurityManager secMan) |
| 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 I2PControlHandler(RouterContext ctx, JSONRPC2Helper helper, SecurityManager secMan)
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.