|
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 |
The PageBroker interface is the root interface implemented by a UIX Controller application. An entire application could, conceivably, consist of just a single implementation of this interface, though such an application would scarcely take advantage of any UIX Controller functionality. Most developers will want to subclass one of the default implementations of this interface.
Method Summary | |
PageEvent |
decodeMultipartRequest(BajaContext context,
Page page)
Decode a multipart request into a PageEvent. |
void |
destroy()
Destroys the page broker, freeing any state as needed. |
java.lang.Object |
getService(BajaContext context,
java.lang.Class serviceClass,
java.lang.Object serviceSelector)
Returns a object that provides some global service. |
Page |
handleRequest(BajaContext context,
Page page,
PageEvent event)
Process a request for a single page, returning the new page to display. |
void |
init(javax.servlet.Servlet servlet,
javax.servlet.ServletConfig config)
Initializes the page broker. |
void |
renderError(BajaContext context,
java.lang.Throwable error)
Renders an error. |
void |
renderPage(BajaContext context,
Page page)
Renders a page. |
void |
requestEnded(BajaContext context)
Callback at the very end of a request. |
void |
requestStarted(BajaContext context)
Called at the very beginning of a request. |
Method Detail |
public void requestStarted(BajaContext context) throws javax.servlet.ServletException
context
- the BajaContextpublic void requestEnded(BajaContext context) throws javax.servlet.ServletException
context
- the BajaContextpublic Page handleRequest(BajaContext context, Page page, PageEvent event) throws PageEventException
context
- the BajaContextpage
- the page the client is requestingevent
- the event on that page, or null if the client
is just requesting a page displayPageEventException
- if the processing of the event failspublic PageEvent decodeMultipartRequest(BajaContext context, Page page) throws java.io.IOException, javax.servlet.ServletException
context
- the BajaContextpage
- the page the client is requestingMultipartFormHandler
public void renderPage(BajaContext context, Page page) throws java.io.IOException, javax.servlet.ServletException
context
- the BajaContextpage
- the page the client is requestingpublic void renderError(BajaContext context, java.lang.Throwable error) throws java.io.IOException, javax.servlet.ServletException
context
- the BajaContexterror
- a Throwablepublic java.lang.Object getService(BajaContext context, java.lang.Class serviceClass, java.lang.Object serviceSelector)
BajaContext.getService()
will call
this PageBroker method for any services it doesn't serve itself.
context
- the BajaContextserviceClass
- a class object that the returned object
must be an instance ofserviceSelector
- a selector object, if one is neededpublic void init(javax.servlet.Servlet servlet, javax.servlet.ServletConfig config) throws javax.servlet.ServletException
public void destroy()
|
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 |