public class MessageConverterUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.springframework.util.MimeType |
X_JAVA_OBJECT
A general MimeType for Java Types.
|
static org.springframework.util.MimeType |
X_JAVA_SERIALIZED_OBJECT
A general MimeType for a Java serialized byte array.
|
static org.springframework.util.MimeType |
X_XD_STRING
An XD MimeType for specifying a String.
|
static org.springframework.util.MimeType |
X_XD_TUPLE
An XD MimeType specifying a
Tuple . |
Constructor and Description |
---|
MessageConverterUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
getJavaTypeForContentType(org.springframework.util.MimeType contentType,
java.lang.ClassLoader classLoader)
Map the contentType to a target class.
|
static org.springframework.util.MimeType |
javaObjectMimeType(java.lang.Class<?> clazz)
Build the conventional
MimeType for a java object |
public static final org.springframework.util.MimeType X_XD_TUPLE
Tuple
.public static final org.springframework.util.MimeType X_XD_STRING
public static final org.springframework.util.MimeType X_JAVA_OBJECT
public static final org.springframework.util.MimeType X_JAVA_SERIALIZED_OBJECT
public static java.lang.Class<?> getJavaTypeForContentType(org.springframework.util.MimeType contentType, java.lang.ClassLoader classLoader)
contentType
- the content typeclassLoader
- the class loader used to resolve the classpublic static org.springframework.util.MimeType javaObjectMimeType(java.lang.Class<?> clazz)
MimeType
for a java objectclazz
- the java type