org.figure8.join.services.remoting.xmlrpc
Class XmlRpcServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.figure8.join.services.remoting.xmlrpc.XmlRpcServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XmlRpcServlet
extends javax.servlet.http.HttpServlet

This is a servlet that initialized a XmlRpcServer if required conditions are present. It retrieves the "xmlRpcHandler" component from a WebApplicationContext as a handler for XmlRpcServer.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
XmlRpcServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Service a GET method Http call.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Service a POST method Http call.
protected  void serviceXmlRpcRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Service the request using the XmlRpcServer.
protected  void setupXmlRpcServer()
          Setup the Xml-Rpc server if application setup is complete and we are on synchronous side of it.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, 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

XmlRpcServlet

public XmlRpcServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Service a GET method Http call.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The container Http request wrapper
response - The container Http rseponse wrapper
Throws:
javax.servlet.ServletException - if iniatilization of Xml-Rpc service fails
java.io.IOException - if input or outputstream cannot be read/written/closed

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Service a POST method Http call.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - The container Http request wrapper
response - The container Http rseponse wrapper
Throws:
javax.servlet.ServletException - if iniatilization of Xml-Rpc service fails
java.io.IOException - if input or outputstream cannot be read/written/closed

serviceXmlRpcRequest

protected void serviceXmlRpcRequest(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws java.io.IOException
Service the request using the XmlRpcServer.

Parameters:
request - The container Http request wrapper
response - The container Http rseponse wrapper
Throws:
java.io.IOException - if input or outputstream cannot be read/written/closed

setupXmlRpcServer

protected void setupXmlRpcServer()
                          throws javax.servlet.ServletException
Setup the Xml-Rpc server if application setup is complete and we are on synchronous side of it.

Throws:
javax.servlet.ServletException - if conditions are not present or initialization of XmlRpc handler fails


Copyright © 2005-2008 Join. All Rights Reserved.