Package nablarch.fw.web.servlet
Class NablarchHttpServletRequestWrapper
java.lang.Object
jakarta.servlet.ServletRequestWrapper
jakarta.servlet.http.HttpServletRequestWrapper
nablarch.fw.web.servlet.NablarchHttpServletRequestWrapper
- All Implemented Interfaces:
jakarta.servlet.http.HttpServletRequest
,jakarta.servlet.ServletRequest
public class NablarchHttpServletRequestWrapper
extends jakarta.servlet.http.HttpServletRequestWrapper
Nablarchのスコープオブジェクトを使用できるサーブレットリクエストのラッパー。
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
サーブレットセッションのラッパーstatic class
ポストパラメータの読み込みに失敗したことを表す実行時例外。 -
Field Summary
Fields inherited from interface jakarta.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
Constructor Summary
ConstructorDescriptionNablarchHttpServletRequestWrapper
(jakarta.servlet.http.HttpServletRequest delegate) コンストラクタ -
Method Summary
Modifier and TypeMethodDescriptionHTTPヘッダーのMapを返す。getParameter
(String name) String[]
getParameterValues
(String name) jakarta.servlet.ServletRequest
getScope()
リクエストスコープへの参照を返す。getSession
(boolean create) setHeaderMap
(Map<String, String> headerMap) HTTPヘッダーを設定する。setParamMap
(Map<String, String[]> params) リクエストパラメータを設定する。リクエストスコープを設定する。Methods inherited from class jakarta.servlet.http.HttpServletRequestWrapper
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, 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, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, 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, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getProtocolRequestId, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getRequestId, getScheme, getServerName, getServerPort, getServletConnection, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
-
Constructor Details
-
NablarchHttpServletRequestWrapper
public NablarchHttpServletRequestWrapper(jakarta.servlet.http.HttpServletRequest delegate) コンストラクタ- Parameters:
delegate
- ラップ対象のリクエストオブジェクト
-
-
Method Details
-
getHeaderMap
HTTPヘッダーのMapを返す。- Returns:
- HTTPヘッダーのMap
-
setHeaderMap
HTTPヘッダーを設定する。- Parameters:
headerMap
- HTTPヘッダーのMap- Returns:
- このオブジェクト自体。
-
setParamMap
リクエストパラメータを設定する。- Parameters:
params
- リクエストパラメータ- Returns:
- このオブジェクト自体
-
getScope
リクエストスコープへの参照を返す。- Returns:
- リクエストスコープへの参照
-
setScope
リクエストスコープを設定する。- Parameters:
scope
- リクエストスコープ- Returns:
- このオブジェクト自体
-
getSession
@Published(tag="architect") public NablarchHttpServletRequestWrapper.HttpSessionWrapper getSession()- Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
- Overrides:
getSession
in classjakarta.servlet.http.HttpServletRequestWrapper
-
getSession
@Published(tag="architect") public NablarchHttpServletRequestWrapper.HttpSessionWrapper getSession(boolean create) - Specified by:
getSession
in interfacejakarta.servlet.http.HttpServletRequest
- Overrides:
getSession
in classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeader
- Specified by:
getHeader
in interfacejakarta.servlet.http.HttpServletRequest
- Overrides:
getHeader
in classjakarta.servlet.http.HttpServletRequestWrapper
-
getHeaderNames
- Specified by:
getHeaderNames
in interfacejakarta.servlet.http.HttpServletRequest
- Overrides:
getHeaderNames
in classjakarta.servlet.http.HttpServletRequestWrapper
-
getParameter
- Specified by:
getParameter
in interfacejakarta.servlet.ServletRequest
- Overrides:
getParameter
in classjakarta.servlet.ServletRequestWrapper
-
getParameterMap
- Specified by:
getParameterMap
in interfacejakarta.servlet.ServletRequest
- Overrides:
getParameterMap
in classjakarta.servlet.ServletRequestWrapper
-
getParameterNames
- Specified by:
getParameterNames
in interfacejakarta.servlet.ServletRequest
- Overrides:
getParameterNames
in classjakarta.servlet.ServletRequestWrapper
-
getParameterValues
- Specified by:
getParameterValues
in interfacejakarta.servlet.ServletRequest
- Overrides:
getParameterValues
in classjakarta.servlet.ServletRequestWrapper
-
getRequest
public jakarta.servlet.ServletRequest getRequest()- Overrides:
getRequest
in classjakarta.servlet.ServletRequestWrapper
-