public interface MutableServletRequest
extends javax.servlet.ServletRequest
Modifier and Type | Method and Description |
---|---|
String |
getReferer() |
javax.servlet.ServletRequest |
getRequest() |
Object |
getSessionAttribute(String attrName) |
String |
removeParameter(String name)
Removes the request parameter with the specified name.
|
void |
sendRedirect(javax.servlet.ServletResponse response,
String url)
Redirects this request to the specified URL.
|
String |
setParameter(String name,
String value)
Sets the value of a request parameter.
|
String[] |
setParameterValues(String name,
String[] values)
Sets the values of a request parameter.
|
Object |
setSessionAttribute(String attrName,
Object attrValue)
Sets the value of a session attribute.
|
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
String setParameter(String name, String value)
name
- the name of the request parametervalue
- the new value of the request parameternull
if this is the first time we set its
valueString[] setParameterValues(String name, String[] values)
name
- the name of the request parametervalues
- the new array of values for the specified request parameternull
if this is the first time we set its
valuesString removeParameter(String name)
name
- a string representing the name of the request parameter to be removednull
if it wasn't setvoid sendRedirect(javax.servlet.ServletResponse response, String url) throws IOException
ServletRequest
.response
- the response object used to redirecturl
- the location where to redirectIOException
- if the redirect failsString getReferer()
Object getSessionAttribute(String attrName)
attrName
- the name of the session attribute whose value should be retrievedObject setSessionAttribute(String attrName, Object attrValue)
attrName
- the name of the session attributeattrValue
- the value to be setjavax.servlet.ServletRequest getRequest()
Copyright © 2004–2022 XWiki. All rights reserved.