Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.servlet.event
Interface PageFlowEngine

All Known Implementing Classes:
BasePageFlowEngine

public interface PageFlowEngine

Hook for controlling page flow in a UIX Controller (Baja) application. This interface is currently only exposed and used in AbstractPageBroker.

Clients can and should write their own implementations of this class to implement the page flow for their application.

See Also:
AbstractPageBroker.setPageFlowEngine(oracle.cabo.servlet.event.PageFlowEngine)

Method Summary
 void destroy()
          Destroys the page flow engine, freeing any state as needed.
 Page handleRequest(BajaContext context, Page sourcePage, PageEvent event, EventHandler handler)
          Handles a request for a page.
 void init(javax.servlet.Servlet servlet, javax.servlet.ServletConfig config)
          Initializes the page flow engine.
 

Method Detail

init

public void init(javax.servlet.Servlet servlet,
                 javax.servlet.ServletConfig config)
Initializes the page flow engine. Developers should not call this method; PageBroker will call it automatically.

destroy

public void destroy()
Destroys the page flow engine, freeing any state as needed. Developers should not call this method; PageBroker will call it automatically.

handleRequest

public Page handleRequest(BajaContext context,
                          Page sourcePage,
                          PageEvent event,
                          EventHandler handler)
                   throws PageEventException
Handles a request for a page.
Parameters:
context - the current BajaContext
sourcePage - the page of the request
event - the event being fired on that page
handler - the EventHandler that should process the event
Returns:
the page that should be rendered in response

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.