Package org.exoplatform.web.application
Class RequestContext
java.lang.Object
org.exoplatform.web.application.RequestContext
Created by The eXo Platform SAS May 7, 2006
This abstract class is a wrapper on top of the request information such as the Locale in use, the application (for instance
PortalApplication, PortletApplication...), an access to the JavascriptManager as well as a reference to the URLBuilder in
use.
It also contains a ThreadLocal object for an easy access.
Context can be nested and hence a getParentAppRequestContext() is also available
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequestContext(RequestContext parentAppRequestContext, Application app_) -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,L extends PortalURL<R, L>>
LcreateURL(ResourceType<R, L> resourceType) final <R,U extends PortalURL<R, U>>
UcreateURL(ResourceType<R, U> resourceType, R resource) final ObjectgetAttribute(Class type) final ObjectgetAttribute(String name) static <T extends RequestContext>
Tbooleanabstract org.exoplatform.services.resources.OrientationReturns the orientation for the current request.abstract StringgetRequestParameter(String name) abstract String[]abstract URLBuilder<?> abstract URLFactoryReturns the url factory associated with this context.abstract org.exoplatform.portal.mop.user.UserPortalbooleanisUserInRole(String roleUser) abstract <R,U extends PortalURL<R, U>>
UnewURL(ResourceType<R, U> resourceType, URLFactory urlFactory) final voidsetAttribute(Class type, Object value) final voidsetAttribute(String name, Object value) static voidvoidabstract booleanuseAjax()
-
Field Details
-
ACTION
- See Also:
-
parentAppRequestContext_
-
-
Constructor Details
-
RequestContext
-
RequestContext
-
-
Method Details
-
getApplication
-
getLocale
-
getURLFactory
Returns the url factory associated with this context.- Returns:
- the url factory
-
newURL
public abstract <R,U extends PortalURL<R, U newURLU>> (ResourceType<R, U> resourceType, URLFactory urlFactory) -
createURL
-
createURL
-
getOrientation
public abstract org.exoplatform.services.resources.Orientation getOrientation()Returns the orientation for the current request.- Returns:
- the orientation
-
getApplicationResourceBundle
-
getRequestParameter
-
getRequestParameterValues
-
getURLBuilder
-
getRemoteUser
-
isUserInRole
-
useAjax
public abstract boolean useAjax() -
getFullRender
public boolean getFullRender() -
getApplicationSession
-
getWriter
- Throws:
Exception
-
setWriter
-
getAttribute
-
setAttribute
-
getAttribute
-
setAttribute
-
getParentAppRequestContext
-
getUserPortal
public abstract org.exoplatform.portal.mop.user.UserPortal getUserPortal() -
getCurrentInstance
-
setCurrentInstance
-