|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImplicitObjectUtil
public final class ImplicitObjectUtil
Utilities for loading NetUI implicit objects into various data binding scopes such as the PageContext, ServletRequest, HttpSession, and ServletContext.
Method Summary | |
---|---|
static GlobalApp |
getGlobalApp(ServletRequest request)
Internal method! |
static PageFlowController |
getPageFlow(ServletRequest request,
ServletResponse response)
Internal method! |
static VariableResolver |
getReadVariableResolver(JspContext jspContext)
Internal method! |
static Map |
getSharedFlow(ServletRequest request)
Get the Map of shared flow objects from the request. |
static VariableResolver |
getUpdateVariableResolver(Object form,
ServletRequest request,
ServletResponse response,
boolean isHandlingPost)
Internal method! |
static VariableResolver |
getUpdateVariableResolver(ServletRequest request,
ServletResponse response,
boolean isHandlingPost)
Internal method! |
static void |
loadActionForm(JspContext jspContext,
Object form)
Load the given form into the JspContext object. |
static void |
loadBundleMap(ServletRequest request,
BundleMap bundleMap)
Load the resource bundle binding map into the request. |
static void |
loadFacesBackingBean(ServletRequest request,
FacesBackingBean facesBackingBean)
Load the JSF backing bean into the request. |
static void |
loadGlobalApp(ServletRequest request,
GlobalApp globalApp)
Load the global app into the request |
static void |
loadImplicitObjects(HttpServletRequest request,
HttpServletResponse response,
ServletContext servletContext,
PageFlowController currentPageFlow)
Load the NetUI framework's implicit objects into the request. |
static void |
loadOutputFormBean(ServletRequest request,
Object bean)
Load the output form bean into the request. |
static void |
loadPageFlow(ServletRequest request,
PageFlowController pageFlow)
Load Page Flow related implicit objects into the request. |
static void |
loadSharedFlow(ServletRequest request,
Map sharedFlows)
Load the shared flow into the request. |
static void |
unloadActionForm(JspContext jspContext)
Remove any action form present in the JspContext . |
static void |
unloadFacesBackingBean(ServletRequest request)
Unload the JSF backing bean from the request |
static Object |
unwrapForm(Object form)
If applicable, unwrap the given form object to its native backing object. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void loadImplicitObjects(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, PageFlowController currentPageFlow)
request
- the requestresponse
- the responseservletContext
- the servlet contextcurrentPageFlow
- the current page flowpublic static void loadActionForm(JspContext jspContext, Object form)
form
into the JspContext
object. Because the
framework supports any bean action forms, the type of the form is Object
jspContext
- the jsp contextform
- the form objectpublic static void unloadActionForm(JspContext jspContext)
JspContext
.
jspContext
- the jsp contextpublic static void loadPageFlow(ServletRequest request, PageFlowController pageFlow)
request
- the requestpageFlow
- the current page flowpublic static void loadFacesBackingBean(ServletRequest request, FacesBackingBean facesBackingBean)
request
- the requestfacesBackingBean
- the JSF backing beanpublic static void unloadFacesBackingBean(ServletRequest request)
request
- the requestpublic static void loadSharedFlow(ServletRequest request, Map sharedFlows)
request
- the requestsharedFlows
- the current shared flowspublic static void loadGlobalApp(ServletRequest request, GlobalApp globalApp)
request
- the requestglobalApp
- the global apppublic static void loadBundleMap(ServletRequest request, BundleMap bundleMap)
request
- the requestbundleMap
- the Map
of resource bundlespublic static void loadOutputFormBean(ServletRequest request, Object bean)
request
- the requestbean
- the output form beanpublic static Object unwrapForm(Object form)
form
object to its native backing object. If
the type of this form is a AnyBeanActionForm
, the type returned will be the
native object backing the wrapper.
form
- the form
public static Map getSharedFlow(ServletRequest request)
Map
of shared flow objects from the request.
request
-
public static PageFlowController getPageFlow(ServletRequest request, ServletResponse response)
request
- the requestresponse
- the response
public static GlobalApp getGlobalApp(ServletRequest request)
request
- the request
public static VariableResolver getUpdateVariableResolver(ServletRequest request, ServletResponse response, boolean isHandlingPost)
VariableResolver
that contains the implicit objects available for expression
updates.
public static VariableResolver getUpdateVariableResolver(Object form, ServletRequest request, ServletResponse response, boolean isHandlingPost)
VariableResolver
that contains the implicit objects available for expression
updates.
public static VariableResolver getReadVariableResolver(JspContext jspContext)
VariableResolver
that contains the implicit objects available for
expression reads.
jspContext
- the jsp context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |