UIX 2.2.15

oracle.cabo.servlet.ui
Class BajaRenderingContext

java.lang.Object
  |
  +--oracle.cabo.ui.LogicalNodeRenderingContext
        |
        +--oracle.cabo.ui.RenderedNodeRenderingContext
              |
              +--oracle.cabo.ui.RootRenderingContext
                    |
                    +--oracle.cabo.ui.ServletRenderingContext
                          |
                          +--oracle.cabo.servlet.ui.BajaRenderingContext
All Implemented Interfaces:
java.lang.Cloneable, ImageContext, RenderingContext, StyleContext

public class BajaRenderingContext
extends ServletRenderingContext

RenderingContext implementation for rendering UIX-Components-based content inside of the UIX Servlet. This rendering context registers several RenderingContext properties in the UIX Servlet namespace:

The Page and BajaContext can be more conveniently retrieved from a RenderingContext using static methods in this class.

This rendering context also will automatically attach a BajaDataProvider, which makes several Servlet- and UIX-Servlet- related objects automatically available. See the documentation of that class for more infromation.

See Also:
BajaDataProvider

Field Summary
static java.lang.String BAJA_CONTEXT_PROPERTY
Property for storing the BajaContext.
static java.lang.String BASE_URI_PROPERTY
Property for storing the portion of the URI that points to the servlet engine.
static java.lang.String PAGE_PROPERTY
Property for storing the Page object.

Fields inherited from class oracle.cabo.ui.ServletRenderingContext
HTTP_SESSION_PROPERTY, JSP_PAGE_CONTEXT_PROPERTY, JSP_PAGE_PROPERTY, SERVLET_CONFIG_PROPERTY, SERVLET_CONTEXT_PROPERTY, SERVLET_REQUEST_PROPERTY, SERVLET_RESPONSE_PROPERTY

Fields inherited from interface oracle.cabo.ui.RenderingContext
CONTEXT_PATH_PROPERTY, CONTEXT_URI_PROPERTY, SHARED_CONTEXT_PATH_PROPERTY, SHARED_CONTEXT_URI_PROPERTY

Constructor Summary
BajaRenderingContext(BajaContext bajaContext, Page page)
Creates a BajaRenderingContext.
BajaRenderingContext(BajaContext bajaContext, java.io.PrintWriter out, Page page)
Deprecated. Let the PrintWriter default
BajaRenderingContext(BajaContext bajaContext, java.io.PrintWriter out, Page page, java.lang.String mimeType)
Deprecated. Let the PrintWriter and mime type default

Method Summary
protected UIVariableResolver createVariableResolver()
gets the variable resolver for the controller
static BajaContext getBajaContext(RenderingContext context)
Returns the BajaContext stored on a RenderingContext.
static Page getPage(RenderingContext context)
Returns the Page stored on a RenderingContext.

Methods inherited from class oracle.cabo.ui.ServletRenderingContext
createErrorLog, createOutputMethod, finishResponse, getBaseAgent, getDefaultLocale, getHttpSession, getHttpSession, getJspPage, getJspPage, getJspPageContext, getJspPageContext, getLocaleContext, getProperty, getServletConfig, getServletConfig, getServletContext, getServletContext, getServletRequest, getServletRequest, getServletResponse, getServletResponse, prepareResponse, setConfiguration, setHttpSession, setHttpSession, setJspPage, setJspPage, setJspPageContext, setJspPageContext, setLocaleContext, setServletConfig, setServletConfig, setServletContext, setServletContext, setServletRequest, setServletRequest, setServletResponse, setServletResponse

Methods inherited from class oracle.cabo.ui.RootRenderingContext
clone, createOutputMethod, getAgent, getConfiguration, getDataObject, getDataObject, getDefaultDataProviderSize, getDefaultNodeStackSize, getDefaultPropertyMapSize, getErrorLog, getFacet, getFormEncoder, getImageContext, getLookAndFeel, getOutputMethod, getParentContext, getRendererManager, getStyleContext, getURLEncoder, getVariableResolver, prepareOutput, resetProperties, setConfiguration, setDataObject, setDataObjectDictionary, setErrorLog, setFacet, setFormEncoder, setURLEncoder, transformName

Methods inherited from class oracle.cabo.ui.RenderedNodeRenderingContext
getLocalProperty, getRenderedAncestorNode, getRenderedAncestorNodeCount, popRenderedChild, pushRenderedChild, reset, setLocalProperty, setProperty

Methods inherited from class oracle.cabo.ui.LogicalNodeRenderingContext
addDataProvider, getAncestorNode, getAncestorNodeCount, getCurrentDataObject, getPath, popChild, pushChild, setCurrentDataObject

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface oracle.cabo.style.StyleContext
setProperty

Methods inherited from interface oracle.cabo.image.ImageContext
setProperty

Field Detail

PAGE_PROPERTY

public static final java.lang.String PAGE_PROPERTY
Property for storing the Page object.

BAJA_CONTEXT_PROPERTY

public static final java.lang.String BAJA_CONTEXT_PROPERTY
Property for storing the BajaContext.

BASE_URI_PROPERTY

public static final java.lang.String BASE_URI_PROPERTY
Property for storing the portion of the URI that points to the servlet engine.

Constructor Detail

BajaRenderingContext

public BajaRenderingContext(BajaContext bajaContext,
                            Page page)
Creates a BajaRenderingContext. The PrintWriter used for output will write to the HttpServletResponse in the BajaContext.
Parameters:
bajaContext - the current BajaContext
page - the Page being rendered

BajaRenderingContext

public BajaRenderingContext(BajaContext bajaContext,
                            java.io.PrintWriter out,
                            Page page,
                            java.lang.String mimeType)
Deprecated. Let the PrintWriter and mime type default
Creates a BajaRenderingContext.
Parameters:
bajaContext - the current BajaContext
out - the PrintWriter used for output
page - the Page being rendered

BajaRenderingContext

public BajaRenderingContext(BajaContext bajaContext,
                            java.io.PrintWriter out,
                            Page page)
Deprecated. Let the PrintWriter default
Creates a BajaRenderingContext.
Parameters:
bajaContext - the current BajaContext
out - the PrintWriter used for output
page - the Page being rendered

Method Detail

getBajaContext

public static BajaContext getBajaContext(RenderingContext context)
Returns the BajaContext stored on a RenderingContext.

getPage

public static Page getPage(RenderingContext context)
Returns the Page stored on a RenderingContext.

createVariableResolver

protected final UIVariableResolver createVariableResolver()
gets the variable resolver for the controller
Overrides:
createVariableResolver in class RootRenderingContext

UIX 2.2.15