Class I2PControlHandler
java.lang.Object
net.i2p.i2pcontrol.servlets.jsonrpc2handlers.I2PControlHandler
- All Implemented Interfaces:
RequestHandler
-
Constructor Summary
ConstructorsConstructorDescriptionI2PControlHandler(RouterContext ctx, JSONRPC2Helper helper, SecurityManager secMan) -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the names of the handled JSON-RPC 2.0 request methods.process(JSONRPC2Request req, MessageContext ctx) Processes a JSON-RPC 2.0 request.
-
Constructor Details
-
I2PControlHandler
-
-
Method Details
-
handledRequests
Description copied from interface:RequestHandlerGets the names of the handled JSON-RPC 2.0 request methods.- Specified by:
handledRequestsin interfaceRequestHandler- Returns:
- The names of the handled JSON-RPC 2.0 request methods.
-
process
Description copied from interface:RequestHandlerProcesses a JSON-RPC 2.0 request.- Specified by:
processin interfaceRequestHandler- Parameters:
req- A valid JSON-RPC 2.0 request instance. Must not benull.ctx- Context information about the request message, may benullif undefined.- Returns:
- The resulting JSON-RPC 2.0 response. It indicates success or an error, such as METHOD_NOT_FOUND.
-