public class SimpleEventHandler extends Object implements EventHandler
Modifier and Type | Field and Description |
---|---|
static String |
err_resource
Contains the property file name for translation of error messages.
|
static String |
module |
Constructor and Description |
---|
SimpleEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
init(ServletContext context)
Initializes the handler.
|
String |
invoke(ConfigXMLReader.Event event,
ConfigXMLReader.RequestMap requestMap,
HttpServletRequest request,
HttpServletResponse response)
Invoke the web event
|
public static final String module
public static final String err_resource
public void init(ServletContext context) throws EventHandlerException
EventHandler
init
in interface EventHandler
context
- ServletContext This may be needed by the handler in order to lookup properties or XML
definition files for rendering pages or handler options.EventHandlerException
EventHandler.init(javax.servlet.ServletContext)
public String invoke(ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, HttpServletRequest request, HttpServletResponse response) throws EventHandlerException
EventHandler
invoke
in interface EventHandler
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 objectEventHandlerException
EventHandler.invoke(ConfigXMLReader.Event, ConfigXMLReader.RequestMap, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)