oracle.cabo.servlet
Class JspBajaContext
java.lang.Object
|
+--oracle.cabo.servlet.BaseBajaContext
|
+--oracle.cabo.servlet.JspBajaContext
- All Implemented Interfaces:
- BajaContext
- public class JspBajaContext
- extends BaseBajaContext
Implementation of BajaContext for use inside JSPs. JspBajaContext supports both the use of JSPs as a wrapper around UIX Servlet's application framework, and the use of JSPs as renderers that will call back to the Framework. Each of its two constructors serves one of these two separate purposes.
Constructor Summary |
JspBajaContext(javax.servlet.jsp.PageContext context, PageBroker broker)
Creates a JspBajaContext for use in processing requests (and optionally rendering). |
JspBajaContext(javax.servlet.jsp.PageContext context, java.lang.String controllerURL)
Creates a JspBajaContext for use only in rendering. |
Method Summary |
protected void |
defaultPageEncoders()
Default the encoder and decoder, choosing the correct ones depending on the request. |
java.lang.Object |
getService(java.lang.Class serviceClass, java.lang.Object serviceSelector)
Returns a object registered on the context. |
Methods inherited from class oracle.cabo.servlet.BaseBajaContext |
createErrorLog, createStateManager, deriveLocaleContext, dispose, getAgent, getErrorLog, getLocaleContext, getPageDecoder, getPageEncoder, getProperty, getServletRequest, getServletResponse, getStateManager, setErrorLog, setLocaleContext, setPageDecoder, setPageEncoder, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JspBajaContext
public JspBajaContext(javax.servlet.jsp.PageContext context,
PageBroker broker)
- Creates a JspBajaContext for use in processing requests (and optionally rendering).
-
- Parameters:
context
- the JSP page context
broker
- the PageBroker that will handle the request
JspBajaContext
public JspBajaContext(javax.servlet.jsp.PageContext context,
java.lang.String controllerURL)
- Creates a JspBajaContext for use only in rendering.
-
- Parameters:
context
- the JSP page context
controllerURL
- the URL of the JSP or Servlet that will process requests from this page.
getService
public java.lang.Object getService(java.lang.Class serviceClass,
java.lang.Object serviceSelector)
- Returns a object registered on the context. This implementation of BajaContext allows retrieval of the JSP PageContext, ServletContext, ServletConfig, Servlet, and PageBroker objects, as well as any objects supported by the PageBroker's getService() method.
-
- Overrides:
getService
in class BaseBajaContext
-
- Parameters:
serviceClass
- a class object that the returned object must be an instance of
serviceSelector
- a selector object, if one is needed
defaultPageEncoders
protected void defaultPageEncoders()
- Default the encoder and decoder, choosing the correct ones depending on the request.
-
- Overrides:
defaultPageEncoders
in class BaseBajaContext