Save This Page
Home » struts-2.0.11.2-src » org.apache » struts2 » dispatcher » [javadoc | source]
org.apache.struts2.dispatcher
public class: StrutsRequestWrapper [javadoc | source]
java.lang.Object
   javax.servlet.ServletRequestWrapper
      javax.servlet.http.HttpServletRequestWrapper
         org.apache.struts2.dispatcher.StrutsRequestWrapper

All Implemented Interfaces:
    HttpServletRequest, ServletRequest

Direct Known Subclasses:
    MultiPartRequestWrapper

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").
Constructor:
 public StrutsRequestWrapper(HttpServletRequest req) 
    The constructor
    Parameters:
    req - The request
Method from org.apache.struts2.dispatcher.StrutsRequestWrapper Summary:
getAttribute
Methods from javax.servlet.http.HttpServletRequestWrapper:
getAuthType,   getContextPath,   getCookies,   getDateHeader,   getHeader,   getHeaderNames,   getHeaders,   getIntHeader,   getMethod,   getPathInfo,   getPathTranslated,   getQueryString,   getRemoteUser,   getRequestURI,   getRequestURL,   getRequestedSessionId,   getServletPath,   getSession,   getSession,   getUserPrincipal,   isRequestedSessionIdFromCookie,   isRequestedSessionIdFromURL,   isRequestedSessionIdFromUrl,   isRequestedSessionIdValid,   isUserInRole
Methods from javax.servlet.ServletRequestWrapper:
getAttribute,   getAttributeNames,   getCharacterEncoding,   getContentLength,   getContentType,   getInputStream,   getLocalAddr,   getLocalName,   getLocalPort,   getLocale,   getLocales,   getParameter,   getParameterMap,   getParameterNames,   getParameterValues,   getProtocol,   getReader,   getRealPath,   getRemoteAddr,   getRemoteHost,   getRemotePort,   getRequest,   getRequestDispatcher,   getScheme,   getServerName,   getServerPort,   isSecure,   removeAttribute,   setAttribute,   setCharacterEncoding,   setRequest
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.dispatcher.StrutsRequestWrapper Detail:
 public Object getAttribute(String s) 
    Gets the object, looking in the value stack if not found