com.xpn.xwiki.wysiwyg.server.filter
Interface MutableServletRequest

All Superinterfaces:
javax.servlet.ServletRequest
All Known Implementing Classes:
MutableHttpServletRequest

public interface MutableServletRequest
extends javax.servlet.ServletRequest

A servlet request that can be modified. It is very useful, for instance, when you need to change the values of some request parameters, inside a filter.


Method Summary
 java.lang.String setParameter(java.lang.String name, java.lang.String value)
          Sets the value of a request parameter.
 java.lang.String[] setParameterValues(java.lang.String name, java.lang.String[] values)
          Sets the values of a request parameter.
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Method Detail

setParameter

java.lang.String setParameter(java.lang.String name,
                              java.lang.String value)
Sets the value of a request parameter.

Parameters:
name - The name of the request parameter.
value - The new value of the request parameter.
Returns:
The old value of the specified request parameter, or null if this is the first time we set its value.

setParameterValues

java.lang.String[] setParameterValues(java.lang.String name,
                                      java.lang.String[] values)
Sets the values of a request parameter.

Parameters:
name - The name of the request parameter.
values - The new array of values for the specified request parameter.
Returns:
The old values of the specified request parameter, or null if this is the first time we set its values.


Copyright © 2004-2008 XWiki. All Rights Reserved.