org.apache.struts2.dispatcher
类 StrutsRequestWrapper

java.lang.Object
  继承者 javax.servlet.ServletRequestWrapper
      继承者 javax.servlet.http.HttpServletRequestWrapper
          继承者 org.apache.struts2.dispatcher.StrutsRequestWrapper
所有已实现的接口:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
直接已知子类:
MultiPartRequestWrapper

public class StrutsRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper

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
 

构造方法详细信息

StrutsRequestWrapper

public StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req)
The constructor

参数:
req - The request

StrutsRequestWrapper

public StrutsRequestWrapper(javax.servlet.http.HttpServletRequest req,
                            boolean disableRequestAttributeValueStackLookup)
The constructor

参数:
req - The request
disableRequestAttributeValueStackLookup - flag for disabling request attribute value stack lookup (JSTL accessibility)
方法详细信息

getAttribute

public Object getAttribute(String key)
Gets the object, looking in the value stack if not found

指定者:
接口 javax.servlet.ServletRequest 中的 getAttribute
覆盖:
javax.servlet.ServletRequestWrapper 中的 getAttribute
参数:
key - The attribute key