net.sf.crispy.impl.rest
Class RestServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.crispy.server.HttpServiceEndpoint
net.sf.crispy.impl.http.HttpServlet
net.sf.crispy.impl.rest.RestServlet
- All Implemented Interfaces:
- Constant, java.io.Serializable, ServiceEndpoint, javax.servlet.Servlet, javax.servlet.ServletConfig, SingleServiceContainer
- public class RestServlet
- extends HttpServlet
- implements Constant
- Author:
- Linke
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
call(java.util.Map pvParameterMap,
java.lang.String pvServiceClassName,
java.lang.String pvMethodName)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
|
protected java.lang.Object[] |
getArgs(java.util.Map pvParameterMap,
java.lang.reflect.Method pvMethod)
|
java.lang.reflect.Method |
getMethod(java.lang.Object pvService,
java.util.Map pvParameterMap,
java.lang.String pvServiceClassName,
java.lang.String pvMethodName)
|
java.lang.String |
makeXmlStream(java.lang.Object pvResult)
Convert the result value to xml representation. |
protected java.util.Map |
prepareParameter(java.util.Map pvParameterMap)
|
Methods inherited from class net.sf.crispy.impl.http.HttpServlet |
addService, addService, convertInParameterTypes, doGet, getArgs, getService, getService, getServiceAndMethodName, getServiceSize, init, removeService |
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, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestServlet
public RestServlet()
doPost
protected void doPost(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
makeXmlStream
public java.lang.String makeXmlStream(java.lang.Object pvResult)
- Convert the result value to xml representation.
getArgs
protected java.lang.Object[] getArgs(java.util.Map pvParameterMap,
java.lang.reflect.Method pvMethod)
throws java.lang.Exception
- Throws:
java.lang.Exception
getMethod
public java.lang.reflect.Method getMethod(java.lang.Object pvService,
java.util.Map pvParameterMap,
java.lang.String pvServiceClassName,
java.lang.String pvMethodName)
throws java.lang.Exception
- Overrides:
getMethod
in class HttpServlet
- Throws:
java.lang.Exception
call
public java.lang.Object call(java.util.Map pvParameterMap,
java.lang.String pvServiceClassName,
java.lang.String pvMethodName)
prepareParameter
protected java.util.Map prepareParameter(java.util.Map pvParameterMap)
Copyright © 2005-2006 Crispy. All Rights Reserved.