|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.servlet.event.BasePageFlowEngine
Base implementation of PageFlowEngine.
Field Summary | |
static java.lang.String |
FORWARD_EVENT_PROPERTY
Page property constant for specifying an event string. |
static java.lang.String |
FORWARD_PAGE_PROPERTY
Page property constant attached to the login page when redirecting to it. |
Constructor Summary | |
BasePageFlowEngine()
|
Method Summary | |
protected EventResult |
checkPageAccess(BajaContext context,
Page sourcePage,
PageEvent event)
Verifies that the current page can be accessed. |
void |
destroy()
Destroys the page flow engine, freeing any state as needed. |
protected abstract Page |
getPage(BajaContext context,
Page sourcePage,
PageEvent event,
EventResult result)
Given the result of an event, determine which Page should be rendered. |
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. |
protected Page |
processForwardRequest(BajaContext context,
Page sourcePage,
Page targetPage)
Processes any forward request on the original source page. |
static void |
setForwardRequest(BajaContext context,
Page targetPage,
Page forwardPage,
PageEvent forwardEvent)
Attaches a forwarding request to a page. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FORWARD_PAGE_PROPERTY
public static final java.lang.String FORWARD_EVENT_PROPERTY
Constructor Detail |
public BasePageFlowEngine()
Method Detail |
public static void setForwardRequest(BajaContext context, Page targetPage, Page forwardPage, PageEvent forwardEvent)
public void init(javax.servlet.Servlet servlet, javax.servlet.ServletConfig config)
init
in interface PageFlowEngine
public void destroy()
destroy
in interface PageFlowEngine
public Page handleRequest(BajaContext context, Page sourcePage, PageEvent event, EventHandler handler) throws PageEventException
handleRequest
in interface PageFlowEngine
context
- the current BajaContextsourcePage
- the page of the requestevent
- the event being fired on that pagehandler
- the EventHandler that should process the eventprotected EventResult checkPageAccess(BajaContext context, Page sourcePage, PageEvent event)
protected abstract Page getPage(BajaContext context, Page sourcePage, PageEvent event, EventResult result) throws PageEventException
context
- the current BajaContextsourcePage
- the page on which the event was processedevent
- the event just processedresult
- the result of that eventprotected Page processForwardRequest(BajaContext context, Page sourcePage, Page targetPage) throws PageEventException
context
- the current BajaContextsourcePage
- the page on with the event was processedtargetPage
- the presumed target page
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |