Module cloud.piranha.extension.weld
Package cloud.piranha.extension.weld
Class WeldHttpServletRequest
java.lang.Object
cloud.piranha.extension.weld.RealtimeHttpServletRequestWrapper
cloud.piranha.extension.weld.WeldHttpServletRequest
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest
,jakarta.servlet.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
ConstructorDescriptionWeldHttpServletRequest
(jakarta.servlet.http.HttpServletRequest request) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.ServletConnection
protected jakarta.servlet.http.HttpServletRequest
Returns the wrapped request.Methods inherited from class cloud.piranha.extension.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, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getUserPrincipal, isAsyncStarted, isAsyncSupported, isRequestedSessionIdFromCookie, 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
public WeldHttpServletRequest(jakarta.servlet.http.HttpServletRequest request) Constructor.- Parameters:
request
- the HTTP servlet request.
-
-
Method Details
-
getWrapped
protected jakarta.servlet.http.HttpServletRequest getWrapped()Description copied from class:RealtimeHttpServletRequestWrapper
Returns the wrapped request.- Specified by:
getWrapped
in classRealtimeHttpServletRequestWrapper
- Returns:
- the wrapped request
-
getRequestId
-
getProtocolRequestId
-
getServletConnection
public jakarta.servlet.ServletConnection getServletConnection()
-