public class ParameterRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper
| 构造器和说明 |
|---|
ParameterRequestWrapper(javax.servlet.http.HttpServletRequest request)
Constructs a request object wrapping the given request.
|
ParameterRequestWrapper(javax.servlet.http.HttpServletRequest request,
Map<String,Object> extendParams)
重载构造方法
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAllParameters(Map<String,Object> otherParams)
增加多个参数
|
void |
addParameter(String name,
Object value)
增加参数
|
String |
getInput() |
javax.servlet.ServletInputStream |
getInputStream() |
String |
getParameter(String name)
重写getParameter方法
|
Enumeration<String> |
getParameterNames()
在获取所有的参数名,必须重写此方法,否则对象中参数值映射不上
|
String[] |
getParameterValues(String name) |
String |
getRequestURI() |
StringBuffer |
getRequestURL() |
String |
getServletPath() |
authenticate, changeSessionId, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getHttpServletMapping, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getSession, getSession, getTrailerFields, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isTrailerFieldsReady, isUserInRole, login, logout, newPushBuilder, upgradegetAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, 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, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameterMap, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsyncpublic ParameterRequestWrapper(javax.servlet.http.HttpServletRequest request)
request - IllegalArgumentException - if the request is nullpublic Enumeration<String> getParameterNames()
getParameterNames 在接口中 javax.servlet.ServletRequestgetParameterNames 在类中 javax.servlet.ServletRequestWrapperpublic String getParameter(String name)
getParameter 在接口中 javax.servlet.ServletRequestgetParameter 在类中 javax.servlet.ServletRequestWrappername - 参数名public String[] getParameterValues(String name)
getParameterValues 在接口中 javax.servlet.ServletRequestgetParameterValues 在类中 javax.servlet.ServletRequestWrapperpublic void addAllParameters(Map<String,Object> otherParams)
otherParams - 增加的多个参数public StringBuffer getRequestURL()
getRequestURL 在接口中 javax.servlet.http.HttpServletRequestgetRequestURL 在类中 javax.servlet.http.HttpServletRequestWrapperpublic String getRequestURI()
getRequestURI 在接口中 javax.servlet.http.HttpServletRequestgetRequestURI 在类中 javax.servlet.http.HttpServletRequestWrapperpublic String getServletPath()
getServletPath 在接口中 javax.servlet.http.HttpServletRequestgetServletPath 在类中 javax.servlet.http.HttpServletRequestWrapperpublic javax.servlet.ServletInputStream getInputStream()
getInputStream 在接口中 javax.servlet.ServletRequestgetInputStream 在类中 javax.servlet.ServletRequestWrapperpublic String getInput()
Copyright © 2025. All rights reserved.