|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.apache.struts2.dispatcher.StrutsRequestWrapper
public class StrutsRequestWrapper
All Struts requests are wrapped with this class, which provides simple JSTL accessibility. This is because JSTL works with request attributes, so this class delegates to the value stack except for a few cases where required to prevent infinite loops. Namely, we don't let any attribute name with "#" in it delegate out to the value stack, as it could potentially cause an infinite loop. For example, an infinite loop would take place if you called: request.getAttribute("#attr.foo").
字段摘要 |
---|
从接口 javax.servlet.http.HttpServletRequest 继承的字段 |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
构造方法摘要 | |
---|---|
StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req)
The constructor |
|
StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req,
boolean disableRequestAttributeValueStackLookup)
The constructor |
方法摘要 | |
---|---|
Object |
getAttribute(String key)
Gets the object, looking in the value stack if not found |
从类 javax.servlet.http.HttpServletRequestWrapper 继承的方法 |
---|
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout |
从类 javax.servlet.ServletRequestWrapper 继承的方法 |
---|
getAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
从接口 javax.servlet.ServletRequest 继承的方法 |
---|
getAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync |
构造方法详细信息 |
---|
public StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req)
req
- The requestpublic StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req, boolean disableRequestAttributeValueStackLookup)
req
- The requestdisableRequestAttributeValueStackLookup
- flag for disabling request attribute value stack lookup (JSTL accessibility)方法详细信息 |
---|
public Object getAttribute(String key)
javax.servlet.ServletRequest
中的 getAttribute
javax.servlet.ServletRequestWrapper
中的 getAttribute
key
- The attribute key
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |