Class TMF630LinksSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<org.springframework.hateoas.Links>
com.fasterxml.jackson.databind.ser.std.StdSerializer<org.springframework.hateoas.Links>
com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links>
com.orange.spring.tmf630.serializers.TMF630LinksSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.jsonschema.SchemaAware, com.fasterxml.jackson.databind.ser.ContextualSerializer, Serializable

public final class TMF630LinksSerializer extends com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
TMF630 serializer for Links. Each link is serialized as a map that associates a relation name to a TMF630Link.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

    com.fasterxml.jackson.databind.JsonSerializer.None
  • Field Summary

    Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _handledType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?>
    _withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
     
    com.fasterxml.jackson.databind.JsonSerializer<?>
    createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property)
     
    com.fasterxml.jackson.databind.JsonSerializer<?>
     
    com.fasterxml.jackson.databind.JavaType
     
    boolean
    hasSingleElement(org.springframework.hateoas.Links value)
     
    void
    serialize(@NotNull org.springframework.hateoas.Links links, @NotNull com.fasterxml.jackson.core.JsonGenerator gen, @NotNull com.fasterxml.jackson.databind.SerializerProvider provider)
     

    Methods inherited from class com.fasterxml.jackson.databind.ser.ContainerSerializer

    hasContentTypeAnnotation, withValueTypeSerializer

    Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer

    _neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties

    Methods inherited from class java.lang.Object

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

    • TMF630LinksSerializer

      public TMF630LinksSerializer()
  • Method Details

    • serialize

      public void serialize(@NotNull @NotNull org.springframework.hateoas.Links links, @NotNull @NotNull com.fasterxml.jackson.core.JsonGenerator gen, @NotNull @NotNull com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
      Specified by:
      serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<org.springframework.hateoas.Links>
      Throws:
      IOException
    • createContextual

      public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(@Nullable com.fasterxml.jackson.databind.SerializerProvider prov, @Nullable com.fasterxml.jackson.databind.BeanProperty property)
      Specified by:
      createContextual in interface com.fasterxml.jackson.databind.ser.ContextualSerializer
    • getContentType

      @Nullable public com.fasterxml.jackson.databind.JavaType getContentType()
      Specified by:
      getContentType in class com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links>
    • getContentSerializer

      @Nullable public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()
      Specified by:
      getContentSerializer in class com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links>
    • _withValueTypeSerializer

      @Nullable protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer(@Nullable com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
      Specified by:
      _withValueTypeSerializer in class com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links>
    • hasSingleElement

      public boolean hasSingleElement(@Nullable org.springframework.hateoas.Links value)
      Specified by:
      hasSingleElement in class com.fasterxml.jackson.databind.ser.ContainerSerializer<org.springframework.hateoas.Links>