Class SchemaHelper
java.lang.Object
org.apache.camel.component.jackson.SchemaHelper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
isPrimitive
(Class<?> type) static boolean
static String
resolveContentClass
(org.apache.camel.Exchange exchange, String fallback) Helper resolves content class from exchange properties and as a fallback tries to retrieve the content class from the payload body type.
-
Field Details
-
SCHEMA
- See Also:
-
VALIDATE
- See Also:
-
CONTENT_SCHEMA
- See Also:
-
CONTENT_SCHEMA_TYPE
- See Also:
-
CONTENT_CLASS
- See Also:
-
-
Method Details
-
resolveContentClass
Helper resolves content class from exchange properties and as a fallback tries to retrieve the content class from the payload body type.- Parameters:
exchange
- the Camel exchange eventually holding content class information in its properties.fallback
- the fallback content class information when no exchange property is set.- Returns:
- the content class as String representation.
-
isString
-
isNumber
-
isPrimitive
-
isPojo
-