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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()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, serviceMethods 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:
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
-