Class XmlRpcConfigurationServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--XmlRpcConfigurationServlet

public class XmlRpcConfigurationServlet
extends javax.servlet.http.HttpServlet

XmlRpcConfigurationServlet is an administration tool that allows configuration changes to be saved to the XML configuration file.

Version:
1.0
See Also:
Serialized Form

Constructor Summary
XmlRpcConfigurationServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           GET requests are received when the client wants to see the current configuration information.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           This method receives requests for modification of the XML-RPC configuration information, all from the doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) method.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcConfigurationServlet

public XmlRpcConfigurationServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException

GET requests are received when the client wants to see the current configuration information. This provides a view-only look at the data. The generated HTML form then submits back to this servlet through POST, which causes the doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) method to be invoked.

Overrides:
doGet in class javax.servlet.http.HttpServlet

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException

This method receives requests for modification of the XML-RPC configuration information, all from the doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) method. This will again use the utility class to update the configuration file, letting the XmlRpcConfiguration object handle the actual writing to a file.

Overrides:
doPost in class javax.servlet.http.HttpServlet