Generated by
JDiff

org.springframework.mock.web Documentation Differences

This file contains all the changes in documentation in the package org.springframework.mock.web as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class MockFilterChain

Mock implementation of the javax.servlet.FilterChain interface. UsedUsed for testing the web framework; also useful for testing customtesting custom javax.servlet.Filter implementations.

A MockFilterChain can be configured with one or more filters and a Servlet to invoke. The first time the chain is called, it invokes all filters and the Servlet, and saves the request and response. Subsequent invocations raise an IllegalStateException unless .reset() is called. @author Juergen Hoeller @author Rob Winch Winch @author Rossen Stoyanchev @since 2.0.3 @see MockFilterConfig @see PassThroughFilterChain

Class MockFilterChain, constructor MockFilterChain()

Register a single do-nothing Filter implementation. The first invocation saves the request and response. Subsequent invocations raise an IllegalStateException unless .reset() is called.
Class MockFilterChain, constructor MockFilterChain(Servlet)

Create a FilterChain with a Servlet but without filters. @param servlet the Servlet to use in this FilterChain invoke @since 3.2
Class MockFilterChain, constructor MockFilterChain(Servlet, Filter[])

Create a {@code FilterChain} with one or more Filter instances's and a Servlet. @param servlet the Servlet to useinvoke in this FilterChain @param filters the Filter's to useinvoke in this FilterChain @since 3.2

Class MockHttpServletRequest

Mock implementation of the javax.servlet.http.HttpServletRequest interface.

Compatible with Servlet 2.5 and partially with Servlet 3.0 (notable exceptions: the getPart(s) and startAsync families of methods). @author Juergen Hoeller @author Rod Johnson @author Rick Evans @author Mark Fisher @author Sam Brannen @since 1.0.2

Class MockHttpServletRequest, constructor MockHttpServletRequest()

Create a new {@code MockHttpServletRequest} with a default MockServletContext. @see MockServletContext#MockHttpServletRequest(ServletContext, String, String)
Class MockHttpServletRequest, constructor MockHttpServletRequest(ServletContext)

Create a new {@code MockHttpServletRequest} with the supplied ServletContext. @param servletContext the ServletContext that the request runs in (may be null to use a default MockServletContext) @see MockServletContext#MockHttpServletRequest(ServletContext, String, String)
Class MockHttpServletRequest, constructor MockHttpServletRequest(ServletContext, String, String)

Create a new {@code MockHttpServletRequest} with the supplied ServletContext, {@code method}, and {@code requestURI}.

The preferred locale will be set to Locale.ENGLISH. @param servletContext the ServletContext that the request runs in (may be null to use a default MockServletContext) @param method the request method (may be null) @param requestURI the request URI (may be null) @see #setMethod @see #setRequestURI @see #setPreferredLocales @see MockServletContext

Class MockHttpServletRequest, constructor MockHttpServletRequest(String, String)

Create a new {@code MockHttpServletRequest} with a default MockServletContext. @param method the request method (may be null) @param requestURI the request URI (may be null) @see #setMethod @see #setRequestURI @see MockServletContext#MockHttpServletRequest(ServletContext, String, String)
Class MockHttpServletRequest, void addParameter(String, String)

Add a single value for the specified HTTP parameter.

If there are already one or more values registered for the given parameter name, the given value will be added to the end of the list.

Class MockHttpServletRequest, void addParameter(String, String[])

Add an array of values for the specified HTTP parameter.

If there are already one or more values registered for the given parameter name, the given values will be added to the end of the list.

Class MockHttpServletRequest, void addParameters(Map)

Adds all provided parameters without replacing any existing values. To replace existing values, use .setParameters(java.util.Map).
Class MockHttpServletRequest, void addPreferredLocale(Locale)

Add a new preferred locale, before any existing locales. @see #setPreferredLocales
Class MockHttpServletRequest, void removeParameter(String)

Remove already registered values for the specified HTTP parameter, if if any.
Class MockHttpServletRequest, void setParameter(String, String)

Set a single value for the specified HTTP parameter.

If there are already one or more values registered for the given parameter name, they will be replaced.

Class MockHttpServletRequest, void setParameter(String, String[])

Set an array of values for the specified HTTP parameter.

If there are already one or more values registered for the given parameter name, they will be replaced.

Class MockHttpServletRequest, void setParameters(Map)

Sets all provided parameters replacing any existing values for the provided parameter names. To add without replacing existing values, use .addParameters(java.util.Map).