project
Class ExampleServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--project.XmlRpcServlet
                    |
                    +--project.ExampleServlet

public class ExampleServlet
extends XmlRpcServlet

This servlet echoes or uppercases its input text. A more complex servlet might use a variety of server side state to perform its work, including databases (JDBC), the file system (including XML files), Enterprise JavaBeans (EJBs), Messaging Services (JMS), other web servers (perhaps in a business-to-business Extranet), and more.

See Also:
Serialized Form

Inner Class Summary
static class ExampleServlet.Executable
          Base class for simple execution framework.
static class ExampleServlet.Uppercase
          Simple which, when executed, "uppercases" text (according to the rules used in the server's locale).
 
Constructor Summary
ExampleServlet()
          Arranges that input XML documents are parsed in a trivial "executable code" framework, and that resolving the DTD for the allowed input document type will not require network access.
 
Method Summary
protected  com.sun.xml.tree.XmlDocument rpc(java.lang.String pathInfo, com.sun.xml.tree.XmlDocument request)
          Modifies the input document, and returns it.
 
Methods inherited from class project.XmlRpcServlet
customizeDocument, customizeResolver, doPost, getCheckTypes, getRequestDocument, sendResponseDocument, setCheckTypes
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleServlet

public ExampleServlet()
Arranges that input XML documents are parsed in a trivial "executable code" framework, and that resolving the DTD for the allowed input document type will not require network access.
Method Detail

rpc

protected com.sun.xml.tree.XmlDocument rpc(java.lang.String pathInfo,
                                           com.sun.xml.tree.XmlDocument request)
Modifies the input document, and returns it. The path info is unused.
Overrides:
rpc in class XmlRpcServlet