|
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.AbstractPageBroker | +--oracle.cabo.servlet.ui.BaseUIPageBroker
BaseUIPageBroker extends AbstractPageBroker to improve support for working with UIX Components. It supports setting up Configuration objects and supporting the use of UIFactory.
The following parameters are all deprecated, and will be removed in the future. BaseUIPageBroker supports a number of deprecated servlet configuration parameters; all of these can be set using WEB-INF/uix-config.xml, and that is the preferred mechanism.
oracle.cabo.image.Headless
: A boolean parameter
which is used to disable dynamic image generation in "headless"
environments. Defaults to false, unless the UIX Dynamic Images
ServletURL
parameter is set.
oracle.cabo.image.ServletURL
: An URL parameter
which is used to specify the location of a ImageServlet instance
which should be used for any dynamic image generation requests.
If not set, generation will be performed in-process.
oracle.cabo.ui.UIExtensions
: a comma-separated
list of (full) class names, each of which must implement
the UIExtension interface. All of these will be instantiated
and registered.
oracle.cabo.ui.disableContentCompression
:
a boolean parameter indicating whether content compression
(such as using short style class names) should be disabled.
Defaults to false.
Fields inherited from class oracle.cabo.servlet.AbstractPageBroker |
EVENT_ERROR_KEY |
Constructor Summary | |
BaseUIPageBroker()
Creates a UIX PageBroker. |
Method Summary | |
protected ConfigurationImpl |
createDefaultConfiguration()
Deprecated. Developers should use uix-config.xml to create configurations, and getConfigurationName()
to access them. |
protected ApplicationConfiguration |
getApplicationConfiguration()
Returns the ApplicationConfiguration available to this application. |
protected Configuration |
getConfiguration(BajaContext context,
Page page)
Deprecated. Developers should override getConfigurationName() |
protected java.lang.String |
getConfigurationName(BajaContext context,
Page page)
Returns the name of the configuration object that should be used for this page. |
java.lang.Object |
getService(BajaContext context,
java.lang.Class serviceClass,
java.lang.Object serviceSelector)
Returns a object that provides some global service. |
protected UIExtension[] |
getUIExtensions()
Returns all the added extensions. |
UIFactory |
getUIFactory()
Gets the UIFactory, used for instantiating UI objects. |
Page |
handleRequest(BajaContext context,
Page page,
PageEvent event)
Processes 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 |
registerUIExtension(UIExtension extension)
Adds a UIExtension to the system. |
void |
setUIFactory(UIFactory uiFactory)
Sets the UIFactory, used for instantiating UI objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseUIPageBroker()
Method Detail |
public Page handleRequest(BajaContext context, Page page, PageEvent event) throws PageEventException
handleRequest
in class AbstractPageBroker
oracle.cabo.servlet.AbstractPageBroker
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 UIFactory getUIFactory()
public void setUIFactory(UIFactory uiFactory)
public void registerUIExtension(UIExtension extension)
public 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.
BaseUIPageBroker supports:
UIFactory
: no selector object
Configuration
: selector must be a Page object
PageDescription
: selector must be a Page object
getService
in class AbstractPageBroker
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
AbstractPageBroker
super.init(servlet, config)
if they override this method.init
in class AbstractPageBroker
protected UIExtension[] getUIExtensions()
registerUIExtension(oracle.cabo.ui.UIExtension)
protected java.lang.String getConfigurationName(BajaContext context, Page page)
protected Configuration getConfiguration(BajaContext context, Page page)
getConfigurationName()
createDefaultConfiguration()
protected ConfigurationImpl createDefaultConfiguration()
getConfigurationName()
to access them.
NB: Because Configuration objects are registered globally, they can never be garbage collected. Clients must be careful to cache the results of calling this method, and not call it repeatedly.
protected final ApplicationConfiguration getApplicationConfiguration()
|
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 |