org.springframework.http.codec.json

Class Jackson2CodecSupport

  • java.lang.Object
    • org.springframework.http.codec.json.Jackson2CodecSupport
  • Direct Known Subclasses:
    AbstractJackson2Decoder, AbstractJackson2Encoder


    public abstract class Jackson2CodecSupport
    extends java.lang.Object
    Base class providing support methods for Jackson 2.9 encoding and decoding.
    Since:
    5.0
    Author:
    Sebastien Deleuze, Rossen Stoyanchev
    • Field Detail

      • JSON_VIEW_HINT

        public static final java.lang.String JSON_VIEW_HINT
        The key for the hint to specify a "JSON View" for encoding or decoding with the value expected to be a Class.
        See Also:
        Jackson JSON Views
      • logger

        protected final Log logger
    • Constructor Detail

    • Method Detail

      • getMimeTypes

        protected java.util.List<MimeType> getMimeTypes()
        Subclasses should expose this as "decodable" or "encodable" mime types.
      • supportsMimeType

        protected boolean supportsMimeType(@Nullable
                                           MimeType mimeType)
      • getJavaType

        protected JavaType getJavaType(java.lang.reflect.Type type,
                                       @Nullable
                                       java.lang.Class<?> contextClass)
      • getHints

        protected java.util.Map<java.lang.String,java.lang.Object> getHints(ResolvableType resolvableType)
      • getAnnotation

        @Nullable
        protected abstract <A extends java.lang.annotation.Annotation> A getAnnotation(MethodParameter parameter,
                                                                                                 java.lang.Class<A> annotType)