Browse Source

Polishing

pull/816/merge
Juergen Hoeller 11 years ago
parent
commit
ce7cc79e9f
  1. 6
      spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java
  2. 2
      spring-web/src/main/java/org/springframework/web/bind/MissingPathVariableException.java

6
spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java

@ -21,14 +21,16 @@ import java.io.OutputStream;
/** /**
* Represents a HTTP output message that allows for setting a streaming body. * Represents a HTTP output message that allows for setting a streaming body.
* Note that such messages typically do not support {@link #getBody()} access.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
* @since 4.0 * @since 4.0
* @see #setBody
*/ */
public interface StreamingHttpOutputMessage extends HttpOutputMessage { public interface StreamingHttpOutputMessage extends HttpOutputMessage {
/** /**
* Sets the streaming body for this message. * Set the streaming body for this message.
* @param body the streaming body * @param body the streaming body
*/ */
void setBody(Body body); void setBody(Body body);
@ -42,7 +44,7 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
interface Body { interface Body {
/** /**
* Writes this body to the given {@link OutputStream}. * Write this body to the given {@link OutputStream}.
* @param outputStream the output stream to write to * @param outputStream the output stream to write to
* @throws IOException in case of errors * @throws IOException in case of errors
*/ */

2
spring-web/src/main/java/org/springframework/web/bind/MissingPathVariableException.java

@ -51,7 +51,7 @@ public class MissingPathVariableException extends ServletRequestBindingException
@Override @Override
public String getMessage() { public String getMessage() {
return "Missing URI template variable '" + this.variableName + return "Missing URI template variable '" + this.variableName +
"' for method parameter of type " + parameter.getParameterType().getSimpleName(); "' for method parameter of type " + this.parameter.getParameterType().getSimpleName();
} }
/** /**

Loading…
Cancel
Save