Document default locale in MockHttpServletRequest

This commit updates the class-level Javadoc for MockHttpServletRequest
with information regarding the default locale for the mocked server.

Issue: SPR-11701
master
Sam Brannen 10 years ago
parent f862a009a7
commit 9bf73f3ab8
  1. 7
      spring-test/src/main/java/org/springframework/mock/web/MockHttpServletRequest.java

@ -58,7 +58,12 @@ import org.springframework.util.StringUtils;
/**
* Mock implementation of the {@link javax.servlet.http.HttpServletRequest} interface.
*
* <p>As of Spring 4.0, this set of mocks is designed on a Servlet 3.0 baseline.
* <p>The default, preferred {@link Locale} for the <em>server</em> mocked
* by this request is {@link Locale#ENGLISH}. This value can be changed
* via {@link #addPreferredLocale} or {@link #setPreferredLocales}.
*
* <p>As of Spring Framework 4.0, this set of mocks is designed on a Servlet
* 3.0 baseline.
*
* @author Juergen Hoeller
* @author Rod Johnson

Loading…
Cancel
Save