com.ecyrd.jspwiki.xmlrpc
Class RPCServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ecyrd.jspwiki.xmlrpc.RPCServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class RPCServlet
- extends HttpServlet
Handles all incoming servlet requests for XML-RPC calls.
Uses two initialization parameters:
- handler : the class which is used to handle the RPC calls.
- prefix : The command prefix for that particular handler.
- Since:
- 1.6.6
- See Also:
- Serialized Form
Field Summary |
static String |
XMLRPC_PREFIX
This is what is appended to each command, if the handler has
not been specified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLRPC_PREFIX
public static final String XMLRPC_PREFIX
- This is what is appended to each command, if the handler has
not been specified.
- See Also:
- Constant Field Values
RPCServlet
public RPCServlet()
initHandler
public void initHandler(String prefix,
String handlerName)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
- Throws:
ClassNotFoundException
InstantiationException
IllegalAccessException
init
public void init(ServletConfig config)
throws ServletException
- Initializes the servlet.
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
doPost
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
- Handle HTTP POST. This is an XML-RPC call, and we'll just forward
the query to an XmlRpcServer.
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException
- Handles HTTP GET. However, we do not respond to GET requests,
other than to show an explanatory text.
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException