Class JavaClassMimeTypeUtils
java.lang.Object
org.springframework.cloud.stream.binder.JavaClassMimeTypeUtils
Handles representing any java class as a
MimeType.- Author:
- David Turanski, Ilayaperumal Gopinathan, Soby Chacko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.util.MimeTypemimeTypeFromObject(Object payload, String originalContentType) Convert payload toMimeTypebased on the content type on the message.
-
Constructor Details
-
JavaClassMimeTypeUtils
public JavaClassMimeTypeUtils()
-
-
Method Details
-
mimeTypeFromObject
public static org.springframework.util.MimeType mimeTypeFromObject(Object payload, String originalContentType) Convert payload toMimeTypebased on the content type on the message.- Parameters:
payload- the payload to convertoriginalContentType- content type on the message- Returns:
- converted
MimeType
-