Class RouterManagerHandler
java.lang.Object
net.i2p.i2pcontrol.servlets.jsonrpc2handlers.RouterManagerHandler
- All Implemented Interfaces:
RequestHandler
public class RouterManagerHandler extends Object implements RequestHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouterManagerHandler.UpdateWrapperManagerTask -
Constructor Summary
Constructors Constructor Description RouterManagerHandler(RouterContext ctx, JSONRPC2Helper helper) -
Method Summary
Modifier and Type Method Description String[]handledRequests()Gets the names of the handled JSON-RPC 2.0 request methods.JSONRPC2Responseprocess(JSONRPC2Request req, MessageContext ctx)Processes a JSON-RPC 2.0 request.
-
Constructor Details
-
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.
-