public class ContextExposingHttpServletRequest
extends javax.servlet.http.HttpServletRequestWrapper
Constructor and Description |
---|
ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest,
WebApplicationContext context)
Create a new ContextExposingHttpServletRequest for the given request.
|
ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest,
WebApplicationContext context,
Set<String> exposedContextBeanNames)
Create a new ContextExposingHttpServletRequest for the given request.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name) |
WebApplicationContext |
getWebApplicationContext()
Return the WebApplicationContext that this request runs in.
|
void |
setAttribute(String name,
Object value) |
authenticate, changeSessionId, 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, upgrade
getAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, 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, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAsyncContext, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, 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, setCharacterEncoding, startAsync, startAsync
public ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest, WebApplicationContext context)
originalRequest
- the original HttpServletRequestcontext
- the WebApplicationContext that this request runs inpublic ContextExposingHttpServletRequest(javax.servlet.http.HttpServletRequest originalRequest, WebApplicationContext context, Set<String> exposedContextBeanNames)
originalRequest
- the original HttpServletRequestcontext
- the WebApplicationContext that this request runs inexposedContextBeanNames
- the names of beans in the context which
are supposed to be exposed (if this is non-null, only the beans in this
Set are eligible for exposure as attributes)public final WebApplicationContext getWebApplicationContext()
public Object getAttribute(String name)
getAttribute
in interface javax.servlet.ServletRequest
getAttribute
in class javax.servlet.ServletRequestWrapper
Copyright © 2015. All rights reserved.