Package org.apache.ofbiz.webapp.event
Class RomeEventHandler
- java.lang.Object
-
- org.apache.ofbiz.webapp.event.RomeEventHandler
-
- All Implemented Interfaces:
EventHandler
public class RomeEventHandler extends java.lang.Object implements EventHandler
RomeEventHandler
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
defaultFeedType
static java.lang.String
mime
static java.lang.String
module
protected com.rometools.rome.io.WireFeedOutput
out
protected EventHandler
service
-
Constructor Summary
Constructors Constructor Description RomeEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
mime
public static final java.lang.String mime
- See Also:
- Constant Field Values
-
defaultFeedType
public static final java.lang.String defaultFeedType
- See Also:
- Constant Field Values
-
service
protected EventHandler service
-
out
protected com.rometools.rome.io.WireFeedOutput out
-
-
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 interfaceEventHandler
- 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 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)
-
-