java.lang.Object
org.springframework.integration.mapping.support.JsonHeaders

public final class JsonHeaders
extends java.lang.Object
Pre-defined names and prefixes to be used for setting and/or retrieving JSON entries from/to Message Headers and other adapter, e.g. AMQP.
Since:
3.0
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONTENT_TYPE_ID  
    static java.util.Collection<java.lang.String> HEADERS  
    static java.lang.String KEY_TYPE_ID  
    static java.lang.String PREFIX  
    static java.lang.String RESOLVABLE_TYPE
    The header to represent a ResolvableType for the target deserialized object.
    static java.lang.String TYPE_ID  
  • Method Summary

    Modifier and Type Method Description
    static org.springframework.core.ResolvableType buildResolvableType​(java.lang.Class<?> targetClass, java.lang.Class<?> contentClass, java.lang.Class<?> keyClass)
    Build a ResolvableType for provided class components.
    static org.springframework.core.ResolvableType buildResolvableType​(java.lang.ClassLoader classLoader, java.lang.Object targetClassValue, java.lang.Object contentClassValue, java.lang.Object keyClassValue)
    Build a ResolvableType for provided class components.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • buildResolvableType

      public static org.springframework.core.ResolvableType buildResolvableType​(java.lang.ClassLoader classLoader, java.lang.Object targetClassValue, @Nullable java.lang.Object contentClassValue, @Nullable java.lang.Object keyClassValue)
      Build a ResolvableType for provided class components.
      Parameters:
      classLoader - a ClassLoader t load classes for components if needed.
      targetClassValue - the class representation object.
      contentClassValue - the collection element (or map value) class representation object.
      keyClassValue - the map key class representation object.
      Returns:
      the ResolvableType based on provided class components
      Since:
      5.2.4
    • buildResolvableType

      public static org.springframework.core.ResolvableType buildResolvableType​(java.lang.Class<?> targetClass, @Nullable java.lang.Class<?> contentClass, @Nullable java.lang.Class<?> keyClass)
      Build a ResolvableType for provided class components.
      Parameters:
      targetClass - the class to use.
      contentClass - the collection element (or map value) class.
      keyClass - the map key class.
      Returns:
      the ResolvableType based on provided class components
      Since:
      5.2.4