Class JavaClassMimeTypeUtils
- java.lang.Object
-
- org.springframework.cloud.stream.binder.JavaClassMimeTypeUtils
-
public abstract class JavaClassMimeTypeUtils extends Object
Handles representing any java class as aMimeType.- Author:
- David Turanski, Ilayaperumal Gopinathan, Soby Chacko
-
-
Constructor Summary
Constructors Constructor Description JavaClassMimeTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.util.MimeTypemimeTypeFromObject(Object payload, String originalContentType)Convert payload toMimeTypebased on the content type on the message.
-
-
-
Method Detail
-
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
-
-