Class JacksonHelper
java.lang.Object
org.springframework.hateoas.mediatype.JacksonHelper
Jackson utility methods.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.JavaType
findRootType
(com.fasterxml.jackson.databind.JavaType contentType) Navigate a chain of parametric types (e.g.static boolean
isResourcesOfResource
(com.fasterxml.jackson.databind.JavaType type) Is this a Resources<Resource<?>>?
-
Constructor Details
-
JacksonHelper
public JacksonHelper()
-
-
Method Details
-
findRootType
public static com.fasterxml.jackson.databind.JavaType findRootType(com.fasterxml.jackson.databind.JavaType contentType) Navigate a chain of parametric types (e.g. Resources<Resource<String>>) until you find the innermost type (String).- Parameters:
contentType
-- Returns:
-
isResourcesOfResource
public static boolean isResourcesOfResource(com.fasterxml.jackson.databind.JavaType type) Is this a Resources<Resource<?>>?- Parameters:
type
-- Returns:
-