public class EncryptRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| 限定符和类型 | 字段和说明 |
|---|---|
protected cn.hutool.core.io.FastByteArrayOutputStream |
cachedContent |
protected String |
jsPublicKey |
| 限定符 | 构造器和说明 |
|---|---|
protected |
EncryptRequestWrapper(javax.servlet.http.HttpServletRequest request) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
copyBody()
重新读取请求,因为request只可以被读取一次,需要重新设置为可多次读取
|
String |
getBody() |
<T> T |
getBody(Class<T> type) |
int |
getContentLength() |
javax.servlet.ServletInputStream |
getInputStream() |
String |
getJSPublicKey()
这个方法为获取前端给后端用于加密aeskey的rsa公钥
|
static EncryptRequestWrapper |
getMultiReadHttpServletRequest(javax.servlet.http.HttpServletRequest request) |
BufferedReader |
getReader() |
String |
getSortBody() |
static EncryptRequestWrapper |
newOrGetMultiReadHttpServletRequest(javax.servlet.http.HttpServletRequest request) |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncprotected cn.hutool.core.io.FastByteArrayOutputStream cachedContent
protected String jsPublicKey
protected EncryptRequestWrapper(javax.servlet.http.HttpServletRequest request)
public static EncryptRequestWrapper newOrGetMultiReadHttpServletRequest(javax.servlet.http.HttpServletRequest request)
public static EncryptRequestWrapper getMultiReadHttpServletRequest(javax.servlet.http.HttpServletRequest request)
protected void copyBody()
public int getContentLength()
getContentLength 在接口中 javax.servlet.ServletRequestgetContentLength 在类中 javax.servlet.ServletRequestWrapperpublic String getBody()
public String getSortBody()
public <T> T getBody(Class<T> type)
public String getJSPublicKey()
public BufferedReader getReader() throws IOException
getReader 在接口中 javax.servlet.ServletRequestgetReader 在类中 javax.servlet.ServletRequestWrapperIOExceptionpublic javax.servlet.ServletInputStream getInputStream()
throws IOException
getInputStream 在接口中 javax.servlet.ServletRequestgetInputStream 在类中 javax.servlet.ServletRequestWrapperIOExceptionCopyright © 2025. All rights reserved.