Package org.apache.ofbiz.webapp.event
Class ServiceMultiEventHandler
- java.lang.Object
-
- org.apache.ofbiz.webapp.event.ServiceMultiEventHandler
-
- All Implemented Interfaces:
EventHandler
public class ServiceMultiEventHandler extends java.lang.Object implements EventHandler
ServiceMultiEventHandler - Event handler for running a service multiple times; for bulk forms
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ASYNC
static java.lang.String
module
protected javax.servlet.ServletContext
servletContext
static java.lang.String
SYNC
-
Constructor Summary
Constructors Constructor Description ServiceMultiEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(javax.servlet.ServletContext servletContext)
Initializes the handler.java.lang.String
invoke(ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Invoke the web event
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
SYNC
public static final java.lang.String SYNC
- See Also:
- Constant Field Values
-
ASYNC
public static final java.lang.String ASYNC
- See Also:
- Constant Field Values
-
servletContext
protected javax.servlet.ServletContext servletContext
-
-
Method Detail
-
init
public void init(javax.servlet.ServletContext servletContext) 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 interfaceEventHandler
- Parameters:
servletContext
- 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
- See Also:
EventHandler.init(javax.servlet.ServletContext)
-
invoke
public java.lang.String invoke(ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws EventHandlerException
Description copied from interface:EventHandler
Invoke the web event- Specified by:
invoke
in interfaceEventHandler
- Parameters:
event
- Contains information about what to executerequestMap
- Contains information about the request-map the event was called fromrequest
- The servlet request objectresponse
- The servlet response object- Returns:
- String Result code
- Throws:
EventHandlerException
- See Also:
EventHandler.invoke(ConfigXMLReader.Event, ConfigXMLReader.RequestMap, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-
-