Prepared for backport to 4.3.20 and 5.0.10
Issue: SPR-17295
This commit is contained in:
@@ -581,7 +581,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all provided parameters <strong>without</strong> replacing any
|
* Add all provided parameters <strong>without</strong> replacing any
|
||||||
* existing values. To replace existing values, use
|
* existing values. To replace existing values, use
|
||||||
* {@link #setParameters(java.util.Map)}.
|
* {@link #setParameters(java.util.Map)}.
|
||||||
*/
|
*/
|
||||||
@@ -610,7 +610,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all existing parameters.
|
* Remove all existing parameters.
|
||||||
*/
|
*/
|
||||||
public void removeAllParameters() {
|
public void removeAllParameters() {
|
||||||
this.parameters.clear();
|
this.parameters.clear();
|
||||||
@@ -1042,8 +1042,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove already registered values for the specified HTTP header, if any.
|
* Remove already registered entries for the specified HTTP header, if any.
|
||||||
* @since 5.1.1
|
* @since 4.3.20
|
||||||
*/
|
*/
|
||||||
public void removeHeader(String name) {
|
public void removeHeader(String name) {
|
||||||
Assert.notNull(name, "Header name must not be null");
|
Assert.notNull(name, "Header name must not be null");
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all provided parameters <strong>without</strong> replacing any
|
* Add all provided parameters <strong>without</strong> replacing any
|
||||||
* existing values. To replace existing values, use
|
* existing values. To replace existing values, use
|
||||||
* {@link #setParameters(java.util.Map)}.
|
* {@link #setParameters(java.util.Map)}.
|
||||||
*/
|
*/
|
||||||
@@ -610,7 +610,7 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all existing parameters.
|
* Remove all existing parameters.
|
||||||
*/
|
*/
|
||||||
public void removeAllParameters() {
|
public void removeAllParameters() {
|
||||||
this.parameters.clear();
|
this.parameters.clear();
|
||||||
@@ -1042,8 +1042,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove already registered values for the specified HTTP header, if any.
|
* Remove already registered entries for the specified HTTP header, if any.
|
||||||
* @since 5.1.1
|
* @since 4.3.20
|
||||||
*/
|
*/
|
||||||
public void removeHeader(String name) {
|
public void removeHeader(String name) {
|
||||||
Assert.notNull(name, "Header name must not be null");
|
Assert.notNull(name, "Header name must not be null");
|
||||||
|
|||||||
Reference in New Issue
Block a user