java.lang.Object
cloud.piranha.cdi.weld.RealtimeHttpServletRequestWrapper
cloud.piranha.cdi.weld.WeldHttpServletRequest
- All Implemented Interfaces:
HttpServletRequest
,ServletRequest
An HttpServletRequest wrapper that always delegates every operation to what has been set as
the current request.
This allows Weld to hold on to a single HttpServletRequest instance, which can then be set to point to another HttpServletRequest instance as the current one that the request uses changes.
This instance changes for example after an authentication module or filter has provided a new HttpServletRequest, or when a dispatch or include is performed.
- Author:
- Arjan Tijms
-
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
-
Method Summary
Methods inherited from class cloud.piranha.cdi.weld.RealtimeHttpServletRequestWrapper
authenticate, changeSessionId, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getContextPath, getCookies, getDateHeader, getDispatcherType, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMethod, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, isWrapperFor, isWrapperFor, login, logout, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync, upgrade
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.http.HttpServletRequest
getHttpServletMapping, getTrailerFields, isTrailerFieldsReady, newPushBuilder
-
Constructor Details
-
WeldHttpServletRequest
Constructor.- Parameters:
request
- the HTTP servlet request.
-
-
Method Details
-
getWrapped
Description copied from class:RealtimeHttpServletRequestWrapper
Returns the wrapped request.- Specified by:
getWrapped
in classRealtimeHttpServletRequestWrapper
- Returns:
- the wrapped request
-