net.sf.crispy.impl.rest
Class RestServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bynet.sf.crispy.server.HttpServiceEndpoint
              extended bynet.sf.crispy.impl.http.HttpServlet
                  extended bynet.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

Field Summary
 
Fields inherited from class net.sf.crispy.impl.http.HttpServlet
log
 
Fields inherited from interface net.sf.crispy.impl.http.Constant
PARAM_CLASS, PARAM_METHOD, PARAM_PARAM, PARAM_TYPES
 
Constructor Summary
RestServlet()
           
 
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 net.sf.crispy.server.HttpServiceEndpoint
createNewInterceptorHandlerInstance, doInvoke, getInterceptorHandlerCreator, setInterceptorHandlerCreator
 
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
 

Constructor Detail

RestServlet

public RestServlet()
Method Detail

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.