integrates XForms Processor into Web-applications and handles request
processing. This is the default implementation of ChibaAdapter and besides
handling the interaction it also manages a UIGenerator to build the rendered
output for the browser.
author: joern turner version: $Id: ServletAdapter.java,v 1.2 2007-05-17 12:52:55 sinisa Exp $
dispatch(ChibaEvent event) ServletAdapter knows and executes only one ChibaEvent: 'http-request'
which will contain the HttpServletRequest as contextInfo.
public void
forward(Map response) Instructs the application environment to forward the given response.
handleEvent(Event event) This method is called whenever an event occurs of the type for which the
EventListener interface was registered.
Parameters: event - The Event contains contextual information aboutthe event.
public void dispatch(ChibaEvent event) throws XFormsException(Code)
ServletAdapter knows and executes only one ChibaEvent: 'http-request'
which will contain the HttpServletRequest as contextInfo.
Parameters: event - only events of type 'http-request' will be handled throws: XFormsException -
Instructs the application environment to forward the given response.
Parameters: response - a map containing at least a response stream and optionalheader information.
This method is called whenever an event occurs of the type for which the
EventListener interface was registered.
Parameters: event - The Event contains contextual information aboutthe event. It also contains the stopPropagation andpreventDefault methods which are used in determining theevent's flow and default action.
place to put application-specific params or configurations before
actually starting off the XFormsProcessor. It's the responsibility of
this method to call chibaBean.init() to finish up the processor setup.
throws: XFormsException - If an error occurs