public class ContentCachingRequestWrapper extends HttpServletRequestWrapperEE
byte array
を介してこのコンテンツを取得できるようにする HttpServletRequest
EE ラッパー。 使用済み AbstractRequestLoggingFilter
による。注: Spring Framework 5.0 以降、このラッパーは Servlet 3.1 API に基づいて構築されています。
ContentCachingResponseWrapper
BASIC_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, upgradeEE
getAsyncContextEE, 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, startAsyncEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getAsyncContextEE, 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, startAsyncEE
public ContentCachingRequestWrapper(HttpServletRequestEE request)
request
- 元のサーブレットリクエスト public ContentCachingRequestWrapper(HttpServletRequestEE request, int contentCacheLimit)
request
- 元のサーブレットリクエスト contentCacheLimit
- リクエストごとにキャッシュする最大バイト数 handleContentOverflow(int)
public ServletInputStreamEE getInputStream() throws IOExceptionSE
ServletRequestEE
の getInputStreamEE
ServletRequestWrapperEE
の getInputStreamEE
IOExceptionSE
public StringSE getCharacterEncoding()
ServletRequestEE
の getCharacterEncodingEE
ServletRequestWrapperEE
の getCharacterEncodingEE
public BufferedReaderSE getReader() throws IOExceptionSE
ServletRequestEE
の getReaderEE
ServletRequestWrapperEE
の getReaderEE
IOExceptionSE
public 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)