You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java
+32-13
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
importorg.apache.commons.logging.LogFactory;
27
27
28
28
importorg.springframework.http.HttpHeaders;
29
+
importorg.springframework.http.HttpInputMessage;
29
30
importorg.springframework.http.HttpOutputMessage;
30
31
importorg.springframework.http.MediaType;
31
32
importorg.springframework.util.Assert;
@@ -34,8 +35,8 @@
34
35
* Abstract base class for most {@link HttpMessageConverter} implementations.
35
36
*
36
37
* <p>This base class adds support for setting supported {@code MediaTypes}, through the {@link
37
-
* #setSupportedMediaTypes(List) supportedMediaTypes} bean property. It also adds support for
38
-
* {@code Content-Type} and {@code Content-Length} when writing to output messages.
38
+
* #setSupportedMediaTypes(List) supportedMediaTypes} bean property. It also adds support for {@code Content-Type} and
39
+
* {@code Content-Length} when writing to output messages.
39
40
*
40
41
* @author Arjen Poutsma
41
42
* @since 3.0
@@ -76,11 +77,29 @@ public List<MediaType> getSupportedMediaTypes() {
76
77
}
77
78
78
79
/**
79
-
* <p>This implementation delegates to {@link #getContentType(Object)} and {@link #getContentLength(Object)},
80
-
* and sets the corresponding headers on the output message. It then calls
Copy file name to clipboardExpand all lines: org.springframework.web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java
Copy file name to clipboardExpand all lines: org.springframework.web/src/main/java/org/springframework/http/converter/xml/AbstractXmlHttpMessageConverter.java
0 commit comments