public class ContentCachingRequestWrapper extends HttpServletRequestWrapperEE
byte array を介してこのコンテンツを取得できるようにする HttpServletRequestEE ラッパー。 使用済み AbstractRequestLoggingFilter による。注: Spring Framework 5.0 以降、このラッパーは Servlet 3.1 API に基づいて構築されています。
ContentCachingResponseWrapperBASIC_AUTHEE, CLIENT_CERT_AUTHEE, DIGEST_AUTHEE, FORM_AUTHEE| コンストラクターと説明 |
|---|
ContentCachingRequestWrapper(HttpServletRequestEE request) 指定されたサーブレットリクエストに対して新しい ContentCachingRequestWrapper を作成します。 |
ContentCachingRequestWrapper(HttpServletRequestEE request, int contentCacheLimit) 指定されたサーブレットリクエストに対して新しい ContentCachingRequestWrapper を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
StringSE | getCharacterEncoding() |
byte[] | getContentAsByteArray() キャッシュされたリクエストコンテンツをバイト配列として返します。 |
ServletInputStreamEE | getInputStream() |
StringSE | getParameter(StringSE name) |
MapSE<StringSE, StringSE[]> | getParameterMap() |
EnumerationSE<StringSE> | getParameterNames() |
StringSE[] | getParameterValues(StringSE name) |
BufferedReaderSE | getReader() |
protected void | handleContentOverflow(int contentCacheLimit) コンテンツオーバーフローを処理するためのテンプレートメソッド: 具体的には、指定されたコンテンツキャッシュの制限を超えて読み取られるリクエスト本文。 |
authenticateEE, changeSessionIdEE, getAuthTypeEE, getContextPathEE, getCookiesEE, getDateHeaderEE, getHeaderEE, getHeaderNamesEE, getHeadersEE, getIntHeaderEE, getMethodEE, getPartEE, getPartsEE, getPathInfoEE, getPathTranslatedEE, getQueryStringEE, getRemoteUserEE, getRequestedSessionIdEE, getRequestURIEE, getRequestURLEE, getServletPathEE, getSessionEE, getSessionEE, getUserPrincipalEE, isRequestedSessionIdFromCookieEE, isRequestedSessionIdFromUrlEE, isRequestedSessionIdFromURLEE, isRequestedSessionIdValidEE, isUserInRoleEE, loginEE, logoutEE, upgradeEEgetAsyncContextEE, getAttributeEE, getAttributeNamesEE, getContentLengthEE, getContentLengthLongEE, getContentTypeEE, getDispatcherTypeEE, getLocalAddrEE, getLocaleEE, getLocalesEE, getLocalNameEE, getLocalPortEE, getProtocolEE, getRealPathEE, getRemoteAddrEE, getRemoteHostEE, getRemotePortEE, getRequestEE, getRequestDispatcherEE, getSchemeEE, getServerNameEE, getServerPortEE, getServletContextEE, isAsyncStartedEE, isAsyncSupportedEE, isSecureEE, isWrapperForEE, isWrapperForEE, removeAttributeEE, setAttributeEE, setCharacterEncodingEE, setRequestEE, startAsyncEE, startAsyncEEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEgetAsyncContextEE, getAttributeEE, getAttributeNamesEE, getContentLengthEE, getContentLengthLongEE, getContentTypeEE, getDispatcherTypeEE, getLocalAddrEE, getLocaleEE, getLocalesEE, getLocalNameEE, getLocalPortEE, getProtocolEE, getRealPathEE, getRemoteAddrEE, getRemoteHostEE, getRemotePortEE, getRequestDispatcherEE, getSchemeEE, getServerNameEE, getServerPortEE, getServletContextEE, isAsyncStartedEE, isAsyncSupportedEE, isSecureEE, removeAttributeEE, setAttributeEE, setCharacterEncodingEE, startAsyncEE, startAsyncEEpublic ContentCachingRequestWrapper(HttpServletRequestEE request)
request - 元のサーブレットリクエスト public ContentCachingRequestWrapper(HttpServletRequestEE request, int contentCacheLimit)
request - 元のサーブレットリクエスト contentCacheLimit - リクエストごとにキャッシュする最大バイト数 handleContentOverflow(int)public ServletInputStreamEE getInputStream() throws IOExceptionSE
ServletRequestEE 内の getInputStreamEE ServletRequestWrapperEE の getInputStreamEE IOExceptionSEpublic StringSE getCharacterEncoding()
ServletRequestEE 内の getCharacterEncodingEE ServletRequestWrapperEE の getCharacterEncodingEE public BufferedReaderSE getReader() throws IOExceptionSE
ServletRequestEE 内の getReaderEE ServletRequestWrapperEE の getReaderEE IOExceptionSEpublic StringSE getParameter(StringSE name)
ServletRequestEE 内の getParameterEE ServletRequestWrapperEE の getParameterEE public MapSE<StringSE,StringSE[]> getParameterMap()
ServletRequestEE 内の getParameterMapEE ServletRequestWrapperEE の getParameterMapEE public EnumerationSE<StringSE> getParameterNames()
ServletRequestEE 内の getParameterNamesEE ServletRequestWrapperEE の getParameterNamesEE public StringSE[] getParameterValues(StringSE name)
ServletRequestEE 内の getParameterValuesEE ServletRequestWrapperEE の getParameterValuesEE public byte[] getContentAsByteArray()
返される配列がコンテンツキャッシュの制限を超えることはありません。
protected void handleContentOverflow(int contentCacheLimit)
デフォルトの実装は空です。サブクラスはこれをオーバーライドして、ペイロードが大きすぎる例外などをスローします。
contentCacheLimit - 超過したリクエストごとのキャッシュする最大バイト数 ContentCachingRequestWrapper(HttpServletRequest, int)