void
|
addHeader(String name, Object value)
Add a header entry for the given name.
|
void
|
addParameter(String name, String value)
Add a single value for the specified HTTP parameter.
|
void
|
addParameter(String name, String[] values)
Add an array of values for the specified HTTP parameter.
|
void
|
addParameters(Map params)
Adds all provided parameters without replacing any
existing values.
|
void
|
addPreferredLocale(Locale locale)
Add a new preferred locale, before any existing locales.
|
void
|
addUserRole(String role)
|
void
|
checkActive()
Check whether this request is still active (that is, not completed yet),
throwing an IllegalStateException if not active anymore.
|
void
|
clearAttributes()
Clear all of this request's attributes.
|
void
|
close()
Mark this request as completed, keeping its state.
|
Object
|
getAttribute(String name)
|
Enumeration<String>
|
getAttributeNames()
|
String
|
getAuthType()
|
String
|
getCharacterEncoding()
|
int
|
getContentLength()
|
String
|
getContentType()
|
String
|
getContextPath()
|
Cookie[]
|
getCookies()
|
long
|
getDateHeader(String name)
|
String
|
getHeader(String name)
|
Enumeration<String>
|
getHeaderNames()
|
Enumeration<String>
|
getHeaders(String name)
|
ServletInputStream
|
getInputStream()
|
int
|
getIntHeader(String name)
|
String
|
getLocalAddr()
|
String
|
getLocalName()
|
int
|
getLocalPort()
|
Locale
|
getLocale()
|
Enumeration<Locale>
|
getLocales()
|
String
|
getMethod()
|
String
|
getParameter(String name)
|
Map<String, String[]>
|
getParameterMap()
|
Enumeration<String>
|
getParameterNames()
|
String[]
|
getParameterValues(String name)
|
String
|
getPathInfo()
|
String
|
getPathTranslated()
|
String
|
getProtocol()
|
String
|
getQueryString()
|
BufferedReader
|
getReader()
|
String
|
getRealPath(String path)
|
String
|
getRemoteAddr()
|
String
|
getRemoteHost()
|
int
|
getRemotePort()
|
String
|
getRemoteUser()
|
RequestDispatcher
|
getRequestDispatcher(String path)
|
String
|
getRequestURI()
|
StringBuffer
|
getRequestURL()
|
String
|
getRequestedSessionId()
|
String
|
getScheme()
|
String
|
getServerName()
|
int
|
getServerPort()
|
ServletContext
|
getServletContext()
Return the ServletContext that this request is associated with.
|
String
|
getServletPath()
|
HttpSession
|
getSession()
|
HttpSession
|
getSession(boolean create)
|
Principal
|
getUserPrincipal()
|
void
|
invalidate()
Invalidate this request, clearing its state.
|
boolean
|
isActive()
Return whether this request is still active (that is, not completed yet).
|
boolean
|
isRequestedSessionIdFromCookie()
|
boolean
|
isRequestedSessionIdFromURL()
|
boolean
|
isRequestedSessionIdFromUrl()
|
boolean
|
isRequestedSessionIdValid()
|
boolean
|
isSecure()
|
boolean
|
isUserInRole(String role)
|
void
|
removeAllParameters()
Removes all existing parameters.
|
void
|
removeAttribute(String name)
|
void
|
removeParameter(String name)
Remove already registered values for the specified HTTP parameter, if
any.
|
void
|
setAttribute(String name, Object value)
|
void
|
setAuthType(String authType)
|
void
|
setCharacterEncoding(String characterEncoding)
|
void
|
setContent(byte[] content)
|
void
|
setContentType(String contentType)
|
void
|
setContextPath(String contextPath)
|
void
|
setCookies(Cookie... cookies)
|
void
|
setLocalAddr(String localAddr)
|
void
|
setLocalName(String localName)
|
void
|
setLocalPort(int localPort)
|
void
|
setMethod(String method)
|
void
|
setParameter(String name, String[] values)
Set an array of values for the specified HTTP parameter.
|
void
|
setParameter(String name, String value)
Set a single value for the specified HTTP parameter.
|
void
|
setParameters(Map params)
Sets all provided parameters replacing any existing
values for the provided parameter names.
|
void
|
setPathInfo(String pathInfo)
|
void
|
setProtocol(String protocol)
|
void
|
setQueryString(String queryString)
|
void
|
setRemoteAddr(String remoteAddr)
|
void
|
setRemoteHost(String remoteHost)
|
void
|
setRemotePort(int remotePort)
|
void
|
setRemoteUser(String remoteUser)
|
void
|
setRequestURI(String requestURI)
|
void
|
setRequestedSessionId(String requestedSessionId)
|
void
|
setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
|
void
|
setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL)
|
void
|
setRequestedSessionIdValid(boolean requestedSessionIdValid)
|
void
|
setScheme(String scheme)
|
void
|
setSecure(boolean secure)
|
void
|
setServerName(String serverName)
|
void
|
setServerPort(int serverPort)
|
void
|
setServletPath(String servletPath)
|
void
|
setSession(HttpSession session)
|
void
|
setUserPrincipal(Principal userPrincipal)
|