|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.controller.RequestContext
Created on 05.11.2002
Constructor Summary | |
protected |
RequestContext()
|
Method Summary | |
abstract Converter |
getConverter()
|
abstract java.util.Map |
getFileParameters()
|
abstract Formatter |
getFormatter()
|
abstract java.util.Locale |
getLocale()
the locale preferred by the user |
abstract java.lang.Object |
getModelReference(java.lang.String expr)
evaluates a JSP EL expression. |
abstract java.lang.String |
getParameter(java.lang.String name)
|
abstract java.util.Map |
getParameters()
returns the request parameters |
abstract java.lang.String[] |
getParameters(java.lang.String name)
|
abstract java.lang.String |
getRemoteDomain()
|
abstract java.lang.String |
getRemoteUser()
returns the remote User Name without its domain name. |
abstract javax.servlet.http.HttpServletRequest |
getRequest()
|
abstract Resources |
getResources()
|
abstract Resources |
getResources(java.lang.Class clasz)
|
abstract Resources |
getResources(java.lang.String bundleName)
|
abstract javax.servlet.http.HttpServletResponse |
getResponse()
|
abstract javax.servlet.ServletContext |
getServletContext()
|
abstract javax.servlet.http.HttpSession |
getSession()
|
static RequestContext |
instance()
returns the RequestContext associated with the current thread / request |
static RequestContext |
instance(boolean failIfEmpty)
returns the RequestContext associated with the current thread / request |
void |
invalidate()
invalidate context after request processing is complete. |
abstract boolean |
isAdmin()
allows derived classes to specify a root user who may do everything. |
boolean |
isResponseComplete()
|
abstract boolean |
isUserInRole(java.lang.String roleExpr)
evaluates a role expression. |
static void |
setInstance(RequestContext context)
pushes a thread local instance. |
abstract void |
setLocale(java.util.Locale locale)
change the Locale for this session including the Locale for JSTL <fmt:message > tag |
abstract void |
setModelReference(java.lang.String expr,
java.lang.Object value)
|
void |
setResponseComplete(boolean complete)
if a RequestListener has called setError() or sentRedirect() on the response it must inform the controller not to forward to the JSP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tonbeller.wcf.expr.ExprContext |
findBean, setBean |
Constructor Detail |
protected RequestContext()
Method Detail |
public abstract javax.servlet.http.HttpServletRequest getRequest()
public abstract javax.servlet.http.HttpServletResponse getResponse()
public abstract javax.servlet.ServletContext getServletContext()
public abstract javax.servlet.http.HttpSession getSession()
public abstract Converter getConverter()
public abstract Formatter getFormatter()
public abstract java.util.Map getFileParameters()
public static RequestContext instance() throws EmptyThreadLocalStackException
EmptyThreadLocalStackException
- if there is no instance set via #setInstance()RequestContextFactoryFinder.createContext(HttpServletRequest, HttpServletResponse, boolean)
public static RequestContext instance(boolean failIfEmpty) throws EmptyThreadLocalStackException
EmptyThreadLocalStackException
RequestContextFactoryFinder.createContext(HttpServletRequest, HttpServletResponse, boolean)
public static void setInstance(RequestContext context)
instance()
. This method is public for test purpose only.
public void invalidate()
RequestContextFactoryFinder.createContext(HttpServletRequest, HttpServletResponse, boolean)
public abstract java.util.Map getParameters()
public abstract java.lang.String[] getParameters(java.lang.String name)
public abstract java.lang.String getParameter(java.lang.String name)
public abstract java.util.Locale getLocale()
public abstract void setLocale(java.util.Locale locale)
public abstract Resources getResources()
public abstract Resources getResources(java.lang.String bundleName)
public abstract Resources getResources(java.lang.Class clasz)
public abstract java.lang.Object getModelReference(java.lang.String expr)
public abstract void setModelReference(java.lang.String expr, java.lang.Object value)
public abstract boolean isUserInRole(java.lang.String roleExpr)
roleExpr
is a JSP EL expression
(e.g. ${bean.stringProperty}), then the result
of the EL is used as the role name.
If roleExpr
starts with "!" the result
is inverted, e.g. all users except members of the
role will be allowed to access the component.
Roles may be mapped in resources.properties (or in
System.properties or user.properties - see
Resources
for details). The format is role.[role1]=[role2]
(not including the brackets).
If such an entry is present, role2 will be checked instead
of role1.
If roleExpr == null, returns true (i.e. everybody is member
of the null role).
public abstract java.lang.String getRemoteUser()
public abstract java.lang.String getRemoteDomain()
public abstract boolean isAdmin()
public void setResponseComplete(boolean complete)
public boolean isResponseComplete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |