public abstract class JavaClassMimeTypeUtils extends Object
MimeType.| Constructor and Description |
|---|
JavaClassMimeTypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
classNameFromMimeType(org.springframework.util.MimeType mimeType)
Retrieve the class name from the type parameter in
MimeType. |
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 messageMimeTypepublic static String classNameFromMimeType(org.springframework.util.MimeType mimeType)
MimeType.mimeType - MimeType to retrieve class name fromCopyright © 2018 Pivotal Software, Inc.. All rights reserved.