public class JSONRPC2Servlet extends HttpServlet
| Constructor and Description |
|---|
JSONRPC2Servlet()Webapp |
JSONRPC2Servlet(RouterContext ctx,
SecurityManager secMan)Plugin |
| Modifier and Type | Method and Description |
|---|---|
void | destroy()Clean up port mappings and stop timed events. |
protected void | doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)Serve the I2PControl status page. |
protected void | doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)Handle JSON-RPC 2.0 requests and password changes. |
void | init()Register JSON-RPC 2.0 request handlers. |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic JSONRPC2Servlet()
public JSONRPC2Servlet(RouterContext ctx, SecurityManager secMan)
public void destroy()
destroy in interface Servletdestroy in class GenericServletprotected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
doGet in class HttpServletServletExceptionIOExceptionprotected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
doPost in class HttpServletServletExceptionIOExceptionpublic void init()
throws ServletExceptioninit in class GenericServletServletException