File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
spring-webmvc/src/test/java/org/springframework/web/servlet/resource
spring-web/src/main/java/org/springframework/http Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
/**
23
23
* Represents a HTTP output message that allows for setting a streaming body.
24
+ * Note that such messages typically do not support {@link #getBody()} access.
24
25
*
25
26
* @author Arjen Poutsma
26
27
* @since 4.0
28
+ * @see #setBody
27
29
*/
28
30
public interface StreamingHttpOutputMessage extends HttpOutputMessage {
29
31
30
32
/**
31
- * Sets the streaming body for this message.
33
+ * Set the streaming body for this message.
32
34
* @param body the streaming body
33
35
*/
34
36
void setBody (Body body );
@@ -42,7 +44,7 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
42
44
interface Body {
43
45
44
46
/**
45
- * Writes this body to the given {@link OutputStream}.
47
+ * Write this body to the given {@link OutputStream}.
46
48
* @param outputStream the output stream to write to
47
49
* @throws IOException in case of errors
48
50
*/
Original file line number Diff line number Diff line change 40
40
import org .springframework .web .HttpRequestMethodNotSupportedException ;
41
41
import org .springframework .web .servlet .HandlerMapping ;
42
42
43
-
44
43
/**
45
44
* Unit tests for ResourceHttpRequestHandler.
46
45
*
@@ -311,6 +310,7 @@ public void writeContentNotClosingInputStream() throws Exception {
311
310
assertEquals (0 , this .response .getContentLength ());
312
311
}
313
312
313
+
314
314
private long headerAsLong (String responseHeaderName ) {
315
315
return Long .valueOf (this .response .getHeader (responseHeaderName ));
316
316
}
You can’t perform that action at this time.
0 commit comments