mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Polishing
This commit is contained in:
@@ -57,7 +57,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
||||
public void writeTo(OutputStream outputStream) throws IOException {
|
||||
StreamUtils.copy(body, outputStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return true;
|
||||
@@ -66,7 +65,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Contract to stream request body content to an {@link OutputStream}.
|
||||
* In some HTTP client libraries this is only possible indirectly through a
|
||||
|
||||
-2
@@ -109,14 +109,12 @@ public abstract class AbstractGenericHttpMessageConverter<T> extends AbstractHtt
|
||||
public OutputStream getBody() {
|
||||
return outputStream;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpHeaders getHeaders() {
|
||||
return headers;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -222,7 +222,6 @@ public abstract class AbstractHttpMessageConverter<T> implements HttpMessageConv
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -106,7 +106,6 @@ public abstract class AbstractSmartHttpMessageConverter<T> extends AbstractHttpM
|
||||
}
|
||||
}, hints);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -229,7 +229,6 @@ public class BufferedImageHttpMessageConverter implements HttpMessageConverter<B
|
||||
public void writeTo(OutputStream outputStream) throws IOException {
|
||||
BufferedImageHttpMessageConverter.this.writeInternal(image, selectedContentType, outputStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return true;
|
||||
|
||||
-1
@@ -493,7 +493,6 @@ public class FormHttpMessageConverter implements HttpMessageConverter<MultiValue
|
||||
FormHttpMessageConverter.this.writeParts(outputStream, parts, boundary);
|
||||
writeEnd(outputStream, boundary);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return repeatable;
|
||||
|
||||
Reference in New Issue
Block a user