Class SchemaHelper

java.lang.Object
org.apache.camel.component.jackson.SchemaHelper

public class SchemaHelper extends Object
  • Field Details

  • Method Details

    • resolveContentClass

      public 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.
      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

      public static boolean isString(Class<?> type)
    • isNumber

      public static boolean isNumber(Class<?> type)
    • isPrimitive

      public static boolean isPrimitive(Class<?> type)
    • isPojo

      public static boolean isPojo(Class<?> type)