Class WebuiRequestContext
java.lang.Object
org.exoplatform.web.application.RequestContext
org.exoplatform.webui.application.WebuiRequestContext
- Direct Known Subclasses:
PortalRequestContext,PortletRequestContext
public abstract class WebuiRequestContext
extends org.exoplatform.web.application.RequestContext
Created by The eXo Platform SAS May 7, 2006
The main class to manage the request context in a webui environment
It adds: - some access to the root UI component (UIApplication) - access to the request and response objects - information
about the current state of the request - the list of object to be updated in an AJAX way - an access to the ResourceResolver
bound to an uri scheme - the reference on the StateManager object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResourceBundlestatic final charprotected Stringprotected UIApplicationFields inherited from class org.exoplatform.web.application.RequestContext
ACTION, parentAppRequestContext_ -
Constructor Summary
ConstructorsModifierConstructorDescriptionWebuiRequestContext(org.exoplatform.web.application.Application app) protectedWebuiRequestContext(org.exoplatform.web.application.RequestContext parentAppRequestContext, org.exoplatform.web.application.Application app_) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUIComponentToUpdateByAjax(UIComponent uicomponent) static StringgenerateUUID(String prefix) org.exoplatform.web.application.JavascriptManagerabstract StringReturns the context path of the portal or null if it does not execute in the context of an aggregated portal request.booleanabstract <T> Tabstract Stringorg.exoplatform.resolver.ResourceResolverabstract <T> Tabstract org.exoplatform.web.application.URLBuilder<UIComponent> booleanabstract voidsendRedirect(String url) voidsetProcessRender(boolean b) voidsetResponseComplete(boolean b) protected voidsetSessionId(String id) voidsetStateManager(StateManager manager) voidsetUIApplication(UIApplication uiApplication) static StringstripUUIDSuffix(String name) Methods inherited from class org.exoplatform.web.application.RequestContext
createURL, createURL, getApplication, getApplicationSession, getAttribute, getAttribute, getCurrentInstance, getFullRender, getLocale, getOrientation, getParentAppRequestContext, getRemoteUser, getRequestParameter, getRequestParameterValues, getURLFactory, getUserPortal, getWriter, isUserInRole, newURL, setAttribute, setAttribute, setCurrentInstance, setWriter, useAjax
-
Field Details
-
NAME_DELIMITER
public static final char NAME_DELIMITER- See Also:
-
uiApplication_
-
sessionId_
-
appRes_
-
-
Constructor Details
-
WebuiRequestContext
public WebuiRequestContext(org.exoplatform.web.application.Application app) -
WebuiRequestContext
protected WebuiRequestContext(org.exoplatform.web.application.RequestContext parentAppRequestContext, org.exoplatform.web.application.Application app_)
-
-
Method Details
-
getSessionId
-
setSessionId
-
getUIApplication
-
setUIApplication
- Throws:
Exception
-
getApplicationResourceBundle
- Overrides:
getApplicationResourceBundlein classorg.exoplatform.web.application.RequestContext
-
getActionParameterName
-
getUIComponentIdParameterName
-
getURLBuilder
- Specified by:
getURLBuilderin classorg.exoplatform.web.application.RequestContext
-
getRequestContextPath
-
getPortalContextPath
Returns the context path of the portal or null if it does not execute in the context of an aggregated portal request.- Returns:
- the portal context path
-
getRequest
public abstract <T> T getRequest() -
getResponse
public abstract <T> T getResponse() -
isResponseComplete
public boolean isResponseComplete() -
setResponseComplete
public void setResponseComplete(boolean b) -
sendRedirect
- Throws:
Exception
-
getProcessRender
public boolean getProcessRender() -
setProcessRender
public void setProcessRender(boolean b) -
getUIComponentToUpdateByAjax
-
addUIComponentToUpdateByAjax
-
getResourceResolver
-
getStateManager
-
setStateManager
-
getJavascriptManager
public org.exoplatform.web.application.JavascriptManager getJavascriptManager() -
generateUUID
-
stripUUIDSuffix
-