public abstract class JavaClassMimeTypeUtils extends Object
MimeType
.Constructor and Description |
---|
JavaClassMimeTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.util.MimeType |
mimeTypeFromObject(Object payload,
String originalContentType)
Convert payload to
MimeType based on the content type on the message. |
public static org.springframework.util.MimeType mimeTypeFromObject(Object payload, String originalContentType)
MimeType
based on the content type on the message.payload
- the payload to convertoriginalContentType
- content type on the messageMimeType
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.