Browse Source

Polishing

pull/934/head
Juergen Hoeller 10 years ago
parent
commit
7f7f24949b
  1. 5
      spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java
  2. 4
      src/asciidoc/core-beans.adoc
  3. 4
      src/asciidoc/integration.adoc

5
spring-web/src/main/java/org/springframework/http/server/ServletServerHttpRequest.java

@ -175,7 +175,6 @@ public class ServletServerHttpRequest implements ServerHttpRequest { @@ -175,7 +175,6 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
}
private static boolean isFormPost(HttpServletRequest request) {
String contentType = request.getContentType();
return (contentType != null && contentType.contains(FORM_CONTENT_TYPE) &&
@ -185,8 +184,8 @@ public class ServletServerHttpRequest implements ServerHttpRequest { @@ -185,8 +184,8 @@ public class ServletServerHttpRequest implements ServerHttpRequest {
/**
* Use {@link javax.servlet.ServletRequest#getParameterMap()} to reconstruct the
* body of a form 'POST' providing a predictable outcome as opposed to reading
* from the body, which can fail if any other code has used ServletRequest
* to access a parameter thus causing the input stream to be "consumed".
* from the body, which can fail if any other code has used the ServletRequest
* to access a parameter, thus causing the input stream to be "consumed".
*/
private static InputStream getBodyFromServletRequestParameters(HttpServletRequest request) throws IOException {
ByteArrayOutputStream bos = new ByteArrayOutputStream(1024);

4
src/asciidoc/core-beans.adoc

@ -8138,8 +8138,8 @@ available to the context so one can use them for conditional event processing: @@ -8138,8 +8138,8 @@ available to the context so one can use them for conditional event processing:
| __argument name__
| evaluation context
| Name of any of the method argument. If for some reason the names are not available
(ex: no debug information), the argument names are also available under the `#a<#arg>`
| Name of any of the method arguments. If for some reason the names are not available
(e.g. no debug information), the argument names are also available under the `#a<#arg>`
where __#arg__ stands for the argument index (starting from 0).
| `#iban` or `#a0` (one can also use `#p0` or `#p<#arg>` notation as an alias).
|===

4
src/asciidoc/integration.adoc

@ -8462,8 +8462,8 @@ conditional computations: @@ -8462,8 +8462,8 @@ conditional computations:
| __argument name__
| evaluation context
| Name of any of the method argument. If for some reason the names are not available
(ex: no debug information), the argument names are also available under the `#a<#arg>`
| Name of any of the method arguments. If for some reason the names are not available
(e.g. no debug information), the argument names are also available under the `#a<#arg>`
where __#arg__ stands for the argument index (starting from 0).
| `#iban` or `#a0` (one can also use `#p0` or `#p<#arg>` notation as an alias).

Loading…
Cancel
Save