クラス ContextExposingHttpServletRequest
java.lang.ObjectSE
jakarta.servlet.ServletRequestWrapper
jakarta.servlet.http.HttpServletRequestWrapper
org.springframework.web.context.support.ContextExposingHttpServletRequest
- 実装されているすべてのインターフェース:
HttpServletRequestEE,ServletRequestEE
特定の WebApplicationContext 内のすべての Spring Bean をリクエスト属性としてアクセス可能にする HttpServletRequest デコレーター。属性がアクセスされると遅延チェックが行われます。
- 導入:
- 2.5
- 作成者:
- Juergen Hoeller
フィールドのサマリー
インターフェース jakarta.servlet.http.HttpServletRequestEE から継承されたフィールド
BASIC_AUTHEE, CLIENT_CERT_AUTHEE, DIGEST_AUTHEE, FORM_AUTHEEコンストラクターの概要
コンストラクターコンストラクター説明ContextExposingHttpServletRequest(HttpServletRequestEE originalRequest, WebApplicationContext context) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。ContextExposingHttpServletRequest(HttpServletRequestEE originalRequest, WebApplicationContext context, SetSE<StringSE> exposedContextBeanNames) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。メソッドのサマリー
修飾子と型メソッド説明getAttribute(StringSE name) final WebApplicationContextこのリクエストが実行される WebApplicationContext を返します。voidsetAttribute(StringSE name, ObjectSE value) クラス jakarta.servlet.http.HttpServletRequestWrapperEE から継承されたメソッド
authenticateEE, changeSessionIdEE, getAuthTypeEE, getContextPathEE, getCookiesEE, getDateHeaderEE, getHeaderEE, getHeaderNamesEE, getHeadersEE, getHttpServletMappingEE, getIntHeaderEE, getMethodEE, getPartEE, getPartsEE, getPathInfoEE, getPathTranslatedEE, getQueryStringEE, getRemoteUserEE, getRequestedSessionIdEE, getRequestURIEE, getRequestURLEE, getServletPathEE, getSessionEE, getSessionEE, getTrailerFieldsEE, getUserPrincipalEE, isRequestedSessionIdFromCookieEE, isRequestedSessionIdFromURLEE, isRequestedSessionIdValidEE, isTrailerFieldsReadyEE, isUserInRoleEE, loginEE, logoutEE, newPushBuilderEE, upgradeEEクラス jakarta.servlet.ServletRequestWrapperEE から継承されたメソッド
getAsyncContextEE, getAttributeNamesEE, getCharacterEncodingEE, getContentLengthEE, getContentLengthLongEE, getContentTypeEE, getDispatcherTypeEE, getInputStreamEE, getLocalAddrEE, getLocaleEE, getLocalesEE, getLocalNameEE, getLocalPortEE, getParameterEE, getParameterMapEE, getParameterNamesEE, getParameterValuesEE, getProtocolEE, getProtocolRequestIdEE, getReaderEE, getRemoteAddrEE, getRemoteHostEE, getRemotePortEE, getRequestEE, getRequestDispatcherEE, getRequestIdEE, getSchemeEE, getServerNameEE, getServerPortEE, getServletConnectionEE, getServletContextEE, isAsyncStartedEE, isAsyncSupportedEE, isSecureEE, isWrapperForEE, isWrapperForEE, removeAttributeEE, setCharacterEncodingEE, setRequestEE, startAsyncEE, startAsyncEEクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース jakarta.servlet.ServletRequestEE から継承されたメソッド
getAsyncContextEE, getAttributeNamesEE, getCharacterEncodingEE, getContentLengthEE, getContentLengthLongEE, getContentTypeEE, getDispatcherTypeEE, getInputStreamEE, getLocalAddrEE, getLocaleEE, getLocalesEE, getLocalNameEE, getLocalPortEE, getParameterEE, getParameterMapEE, getParameterNamesEE, getParameterValuesEE, getProtocolEE, getProtocolRequestIdEE, getReaderEE, getRemoteAddrEE, getRemoteHostEE, getRemotePortEE, getRequestDispatcherEE, getRequestIdEE, getSchemeEE, getServerNameEE, getServerPortEE, getServletConnectionEE, getServletContextEE, isAsyncStartedEE, isAsyncSupportedEE, isSecureEE, removeAttributeEE, setCharacterEncodingEE, startAsyncEE, startAsyncEE
コンストラクターの詳細
ContextExposingHttpServletRequest
public ContextExposingHttpServletRequest(HttpServletRequestEE originalRequest, WebApplicationContext context) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。- パラメーター:
originalRequest- オリジナルの HttpServletRequestcontext- このリクエストが実行される WebApplicationContext
ContextExposingHttpServletRequest
public ContextExposingHttpServletRequest(HttpServletRequestEE originalRequest, WebApplicationContext context, @Nullable SetSE<StringSE> exposedContextBeanNames) 指定されたリクエストに対して新しい ContextExposingHttpServletRequest を作成します。- パラメーター:
originalRequest- オリジナルの HttpServletRequestcontext- このリクエストが実行される WebApplicationContextexposedContextBeanNames- 公開されるはずのコンテキスト内の Bean の名前 (これが null 以外の場合、このセットの Bean のみが属性として公開の対象になります)
メソッドの詳細
getWebApplicationContext
このリクエストが実行される WebApplicationContext を返します。getAttribute
- 次で指定:
- インターフェース
ServletRequestEEのgetAttributeEE - オーバーライド:
- クラス
ServletRequestWrapperEEのgetAttributeEE
setAttribute
- 次で指定:
- インターフェース
ServletRequestEEのsetAttributeEE - オーバーライド:
- クラス
ServletRequestWrapperEEのsetAttributeEE