Module org.glassfish.soteria
Package org.glassfish.soteria.servlet
Class HttpServletRequestDelegator
- java.lang.Object
-
- jakarta.servlet.ServletRequestWrapper
-
- jakarta.servlet.http.HttpServletRequestWrapper
-
- org.glassfish.soteria.servlet.HttpServletRequestDelegator
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest,jakarta.servlet.ServletRequest
public class HttpServletRequestDelegator extends jakarta.servlet.http.HttpServletRequestWrapperThis class wraps a given HttpServletRequest instance and delegates "most" methods that request "base data" to an also given RequestData instance.- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description HttpServletRequestDelegator(jakarta.servlet.http.HttpServletRequest request, RequestData requestData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.servlet.http.Cookie[]getCookies()longgetDateHeader(String name)StringgetHeader(String name)Enumeration<String>getHeaderNames()Enumeration<String>getHeaders(String name)intgetIntHeader(String name)LocalegetLocale()Enumeration<Locale>getLocales()StringgetMethod()StringgetParameter(String name)Map<String,String[]>getParameterMap()Enumeration<String>getParameterNames()String[]getParameterValues(String name)-
Methods inherited from class jakarta.servlet.http.HttpServletRequestWrapper
authenticate, changeSessionId, getAuthType, getContextPath, getHttpServletMapping, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgrade
-
Methods inherited from class jakarta.servlet.ServletRequestWrapper
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.servlet.ServletRequest
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
-
-
-
Constructor Detail
-
HttpServletRequestDelegator
public HttpServletRequestDelegator(jakarta.servlet.http.HttpServletRequest request, RequestData requestData)
-
-
Method Detail
-
getCookies
public jakarta.servlet.http.Cookie[] getCookies()
- Specified by:
getCookiesin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getCookiesin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeaderNames
public Enumeration<String> getHeaderNames()
- Specified by:
getHeaderNamesin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeaderNamesin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeader
public String getHeader(String name)
- Specified by:
getHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeaders
public Enumeration<String> getHeaders(String name)
- Specified by:
getHeadersin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getHeadersin classjakarta.servlet.http.HttpServletRequestWrapper
-
getIntHeader
public int getIntHeader(String name)
- Specified by:
getIntHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getIntHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
getDateHeader
public long getDateHeader(String name)
- Specified by:
getDateHeaderin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getDateHeaderin classjakarta.servlet.http.HttpServletRequestWrapper
-
getParameterMap
public Map<String,String[]> getParameterMap()
- Specified by:
getParameterMapin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterMapin classjakarta.servlet.ServletRequestWrapper
-
getParameter
public String getParameter(String name)
- Specified by:
getParameterin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterin classjakarta.servlet.ServletRequestWrapper
-
getParameterNames
public Enumeration<String> getParameterNames()
- Specified by:
getParameterNamesin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterNamesin classjakarta.servlet.ServletRequestWrapper
-
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValuesin interfacejakarta.servlet.ServletRequest- Overrides:
getParameterValuesin classjakarta.servlet.ServletRequestWrapper
-
getLocales
public Enumeration<Locale> getLocales()
- Specified by:
getLocalesin interfacejakarta.servlet.ServletRequest- Overrides:
getLocalesin classjakarta.servlet.ServletRequestWrapper
-
getLocale
public Locale getLocale()
- Specified by:
getLocalein interfacejakarta.servlet.ServletRequest- Overrides:
getLocalein classjakarta.servlet.ServletRequestWrapper
-
getMethod
public String getMethod()
- Specified by:
getMethodin interfacejakarta.servlet.http.HttpServletRequest- Overrides:
getMethodin classjakarta.servlet.http.HttpServletRequestWrapper
-
-