|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.mock.web
as colored differences. Deletions are shownlike 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, constructor MockFilterChain()Mock implementation of the javax.servlet.FilterChain interface.
UsedUsed for testing the web framework; also useful fortesting 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
WinchWinch @author Rossen Stoyanchev @since 2.0.3 @see MockFilterConfig @see PassThroughFilterChain
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 ServletClass MockFilterChain, constructor MockFilterChain(Servlet, Filter[])but without filters. @param servlet the Servlet touse in this FilterChaininvoke @since 3.2
Create a {@code FilterChain} withone or moreFilterinstances's and a Servlet. @param servlet the Servlet touseinvoke in this FilterChain @param filters the Filter's touseinvoke in this FilterChain @since 3.2
Mock implementation of the javax.servlet.http.HttpServletRequest interface.Class MockHttpServletRequest, constructor MockHttpServletRequest()Compatible with Servlet 2.5 and partially with Servlet 3.0 (notable exceptions: the
getPart(s)
andstartAsync
families of methods). @author Juergen Hoeller @author Rod Johnson @author Rick Evans @author Mark Fisher @author Sam Brannen @since 1.0.2
Create a new {@code MockHttpServletRequest} with a default MockServletContext. @seeClass MockHttpServletRequest, constructor MockHttpServletRequest(ServletContext)MockServletContext#MockHttpServletRequest(ServletContext, String, String)
Create a new {@code MockHttpServletRequest} with the supplied ServletContext. @param servletContext the ServletContext that the request runs in (may beClass MockHttpServletRequest, constructor MockHttpServletRequest(ServletContext, String, String)null
to use a default MockServletContext) @seeMockServletContext#MockHttpServletRequest(ServletContext, String, String)
Create a new {@code MockHttpServletRequest} with the supplied ServletContext, {@code method}, and {@code requestURI}.Class MockHttpServletRequest, constructor MockHttpServletRequest(String, String)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 benull
) @param requestURI the request URI (may benull
) @see #setMethod @see #setRequestURI @see #setPreferredLocales @see MockServletContext
Create a new {@code MockHttpServletRequest} with a default MockServletContext. @param method the request method (may beClass MockHttpServletRequest, void addParameter(String, String)null
) @param requestURI the request URI (may benull
) @see #setMethod @see #setRequestURI @seeMockServletContext#MockHttpServletRequest(ServletContext, String, String)
Add a single value for the specified HTTP parameter.Class MockHttpServletRequest, void addParameter(String, String[])
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.
Add an array of values for the specified HTTP parameter.Class MockHttpServletRequest, void addParameters(Map)
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.
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 #setPreferredLocalesClass MockHttpServletRequest, void removeParameter(String)
Remove already registered values for the specified HTTP parameter,Class MockHttpServletRequest, void setParameter(String, String)ifif any.
Set a single value for the specified HTTP parameter.Class MockHttpServletRequest, void setParameter(String, String[])
If there are already one or more values registered for the given parameter name, they will be replaced.
Set an array of values for the specified HTTP parameter.Class MockHttpServletRequest, void setParameters(Map)
If there are already one or more values registered for the given parameter name, they will be replaced.
Sets all provided parameters replacing any existing values for the provided parameter names. To add without replacing existing values, use .addParameters(java.util.Map).