org.ofbiz.webapp.event
Class XmlRpcEventHandler

java.lang.Object
  extended by XmlRpcHttpServer
      extended by org.ofbiz.webapp.event.XmlRpcEventHandler
All Implemented Interfaces:
EventHandler

public class XmlRpcEventHandler
extends XmlRpcHttpServer
implements EventHandler

XmlRpcEventHandler


Field Summary
protected  GenericDelegator delegator
           
protected  LocalDispatcher dispatcher
           
static java.lang.String dispatcherName
           
static java.lang.String module
           
 
Constructor Summary
XmlRpcEventHandler()
           
 
Method Summary
protected  XmlRpcHttpRequestConfig getXmlRpcConfig(HttpServletRequest req)
           
 void init(ServletContext context)
          Initializes the handler.
 java.lang.String invoke(ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, HttpServletRequest request, HttpServletResponse response)
          Invoke the web event
protected  void setResponseHeader(ServerStreamConnection con, java.lang.String header, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

dispatcherName

public static final java.lang.String dispatcherName
See Also:
Constant Field Values

delegator

protected GenericDelegator delegator

dispatcher

protected LocalDispatcher dispatcher
Constructor Detail

XmlRpcEventHandler

public XmlRpcEventHandler()
Method Detail

init

public void init(ServletContext context)
          throws EventHandlerException
Description copied from interface: EventHandler
Initializes the handler. Since handlers use the singleton pattern this method should only be called the first time the handler is used.

Specified by:
init in interface EventHandler
Parameters:
context - ServletContext This may be needed by the handler in order to lookup properties or XML definition files for rendering pages or handler options.
Throws:
EventHandlerException

invoke

public java.lang.String invoke(ConfigXMLReader.Event event,
                               ConfigXMLReader.RequestMap requestMap,
                               HttpServletRequest request,
                               HttpServletResponse response)
                        throws EventHandlerException
Description copied from interface: EventHandler
Invoke the web event

Specified by:
invoke in interface EventHandler
Parameters:
event - Contains information about what to execute
requestMap - Contains information about the request-map the event was called from
request - The servlet request object
response - The servlet response object
Returns:
String Result code
Throws:
EventHandlerException
See Also:
org.ofbiz.webapp.event.EventHandler#invoke(Event, org.ofbiz.webapp.control.ConfigXMLReader.RequestMap, HttpServletRequest, HttpServletResponse)

setResponseHeader

protected void setResponseHeader(ServerStreamConnection con,
                                 java.lang.String header,
                                 java.lang.String value)

getXmlRpcConfig

protected XmlRpcHttpRequestConfig getXmlRpcConfig(HttpServletRequest req)