Class DelayedFieldJsonSerializer

java.lang.Object
com.emc.documentum.rest.parser.json.writer.field.AbstractFieldJsonSerializer
com.emc.documentum.rest.parser.json.writer.field.DelayedFieldJsonSerializer
All Implemented Interfaces:
AnnotatedFieldBindingProcessor, AnnotatedFieldSerializer<com.emc.documentum.rest.parser.json.writer.TypeJsonWriter>

public class DelayedFieldJsonSerializer extends AbstractFieldJsonSerializer
This is the delayed JSON serializer for serializable field.
  • Constructor Details

    • DelayedFieldJsonSerializer

      public DelayedFieldJsonSerializer()
  • Method Details

    • serialize

      public void serialize(com.emc.documentum.rest.parser.json.writer.TypeJsonWriter writer, Object fieldValue, SerializableFieldMeta node, org.springframework.http.MediaType contentType, com.emc.documentum.rest.config.BindingConfig bindingConfig)
      Description copied from interface: AnnotatedFieldSerializer
      Serialize the field.
      Parameters:
      writer - message writer
      fieldValue - field value
      node - the serializable field meta
      contentType - the target media type to serialize
      bindingConfig - the binding configuration
    • serializable

      public boolean serializable(Object fieldValue, SerializableFieldMeta node)
      Description copied from interface: AnnotatedFieldSerializer
      Check if the field value and field type is serializable by this serializer.
      Parameters:
      fieldValue - the field value
      node - the serializable field meta
      Returns:
      true if the field value is serializable; false otherwise.
    • isCompatibleMediaType

      public boolean isCompatibleMediaType(org.springframework.http.MediaType mediaType)
      Description copied from interface: AnnotatedFieldBindingProcessor
      Check if the message serializer or deserializer is compatible with the specified media type.
      Specified by:
      isCompatibleMediaType in interface AnnotatedFieldBindingProcessor
      Overrides:
      isCompatibleMediaType in class AbstractFieldJsonSerializer
      Parameters:
      mediaType - the media type to check
      Returns:
      true for compatible