Package net.i2p.i2pcontrol.servlets
Class JSONRPC2Servlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- net.i2p.i2pcontrol.servlets.JSONRPC2Servlet
-
- All Implemented Interfaces:
Serializable,Servlet,ServletConfig
public class JSONRPC2Servlet extends HttpServlet
Provide an JSON-RPC 2.0 API for remote controlling of I2P- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONRPC2Servlet()WebappJSONRPC2Servlet(RouterContext ctx, SecurityManager secMan)Plugin
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()protected voiddoGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)protected voiddoPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)voidinit()-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
-
-
-
Constructor Detail
-
JSONRPC2Servlet
public JSONRPC2Servlet()
Webapp
-
JSONRPC2Servlet
public JSONRPC2Servlet(RouterContext ctx, SecurityManager secMan)
Plugin
-
-
Method Detail
-
init
public void init() throws ServletException- Overrides:
initin classGenericServlet- Throws:
ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfaceServlet- Overrides:
destroyin classGenericServlet
-
doGet
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
- Overrides:
doGetin classHttpServlet- Throws:
ServletExceptionIOException
-
doPost
protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException
- Overrides:
doPostin classHttpServlet- Throws:
ServletExceptionIOException
-
-