net.sf.crispy.impl.xmlrpc
Class XmlRpcHttpServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.crispy.server.HttpServiceEndpoint
net.sf.crispy.impl.xmlrpc.XmlRpcHttpServlet
- All Implemented Interfaces:
- java.io.Serializable, ServiceEndpoint, javax.servlet.Servlet, javax.servlet.ServletConfig, SingleServiceContainer
- public class XmlRpcHttpServlet
- extends HttpServiceEndpoint
- implements SingleServiceContainer
- See Also:
- Serialized Form
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Method Summary |
void |
addService(java.lang.String pvInterfaceName,
java.lang.Object pvServiceImpl)
Add service implementation. |
void |
addService(java.lang.String pvServiceInterfaceName,
java.lang.String pvServiceImplName)
Create a instance from the service impl class name. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
java.lang.String |
getNullValue()
|
java.lang.Object |
getService(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
This is a alternative to the Object getService(String pvServiceInterfaceName) method.
|
java.lang.Object |
getService(java.lang.String pvServiceInterfaceName)
Find the service impl. |
int |
getServiceSize()
Size of services in the container. |
void |
init(javax.servlet.ServletConfig pvConfig)
|
void |
removeService(java.lang.String pvServiceInterfaceName)
Remove the service from the container. |
void |
setNullValue(java.lang.String pvNullValue)
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.apache.commons.logging.Log log
XmlRpcHttpServlet
public XmlRpcHttpServlet()
setNullValue
public void setNullValue(java.lang.String pvNullValue)
getNullValue
public java.lang.String getNullValue()
init
public void init(javax.servlet.ServletConfig pvConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Throws:
javax.servlet.ServletException
addService
public void addService(java.lang.String pvInterfaceName,
java.lang.Object pvServiceImpl)
- Description copied from interface:
SingleServiceContainer
- Add service implementation.
- Specified by:
addService
in interface SingleServiceContainer
- Parameters:
pvInterfaceName
- Is the key in a map.pvServiceImpl
- Is the value in a map.
getService
public java.lang.Object getService(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
throws java.lang.Exception
- Description copied from class:
HttpServiceEndpoint
- This is a alternative to the
Object getService(String pvServiceInterfaceName)
method.
With this method you can use SessionID (request.getSession().getId()
)
for a service with scope equals Session.
- Overrides:
getService
in class HttpServiceEndpoint
- Parameters:
pvRequest
- pvResponse
-
- Returns:
- The service implementation. Default retun value is
null
.
For a real service implementation must override this method.
- Throws:
java.lang.Exception
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
addService
public void addService(java.lang.String pvServiceInterfaceName,
java.lang.String pvServiceImplName)
- Description copied from interface:
SingleServiceContainer
- Create a instance from the service impl class name.
- Specified by:
addService
in interface SingleServiceContainer
- Parameters:
pvServiceInterfaceName
- Is the key in a map.pvServiceImplName
- Is the class name from the service impl.
removeService
public void removeService(java.lang.String pvServiceInterfaceName)
- Description copied from interface:
SingleServiceContainer
- Remove the service from the container.
- Specified by:
removeService
in interface SingleServiceContainer
- Parameters:
pvServiceInterfaceName
- Is the key in a map.
getService
public java.lang.Object getService(java.lang.String pvServiceInterfaceName)
- Description copied from interface:
SingleServiceContainer
- Find the service impl.
- Specified by:
getService
in interface SingleServiceContainer
- Parameters:
pvServiceInterfaceName
- Is the key in a map.
- Returns:
- The service impl or
null
.
getServiceSize
public int getServiceSize()
- Description copied from interface:
SingleServiceContainer
- Size of services in the container.
- Specified by:
getServiceSize
in interface SingleServiceContainer
- Returns:
- Size of services.
Copyright © 2005-2006 Crispy. All Rights Reserved.