public abstract class MessageConverterUtils extends 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_SPRING_TUPLE
An MimeType specifying a
Tuple . |
Constructor and Description |
---|
MessageConverterUtils() |
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getJavaTypeForJavaObjectContentType(org.springframework.util.MimeType contentType)
Get the java Object type for the MimeType X_JAVA_OBJECT
|
static org.springframework.util.MimeType |
getMimeType(String contentTypeString) |
static org.springframework.util.MimeType |
javaObjectMimeType(Class<?> clazz)
Build the conventional
MimeType for a java object |
static org.springframework.util.MimeType |
resolveContentType(String type) |
static Class<?> |
resolveJavaType(String type) |
public static final org.springframework.util.MimeType X_SPRING_TUPLE
Tuple
.public static final org.springframework.util.MimeType X_JAVA_OBJECT
public static final org.springframework.util.MimeType X_JAVA_SERIALIZED_OBJECT
public static Class<?> getJavaTypeForJavaObjectContentType(org.springframework.util.MimeType contentType)
public static org.springframework.util.MimeType javaObjectMimeType(Class<?> clazz)
MimeType
for a java objectclazz
- the java typepublic static org.springframework.util.MimeType getMimeType(String contentTypeString)
public static org.springframework.util.MimeType resolveContentType(String type) throws ClassNotFoundException, LinkageError
ClassNotFoundException
LinkageError
public static Class<?> resolveJavaType(String type) throws ClassNotFoundException, LinkageError
ClassNotFoundException
LinkageError
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.