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
Provide an JSON-RPC 2.0 API for remote controlling of I2P
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
protected void
doGet
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) protected void
doPost
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) void
init()
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 Details
-
JSONRPC2Servlet
public JSONRPC2Servlet()Webapp -
JSONRPC2Servlet
Plugin
-
-
Method Details
-
init
- Overrides:
init
in classGenericServlet
- Throws:
ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfaceServlet
- Overrides:
destroy
in classGenericServlet
-
doGet
protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException - Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-
doPost
protected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException - Overrides:
doPost
in classHttpServlet
- Throws:
ServletException
IOException
-