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>
This is the delayed JSON serializer for serializable field.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCompatibleMediaType
(org.springframework.http.MediaType mediaType) Check if the message serializer or deserializer is compatible with the specified media type.boolean
serializable
(Object fieldValue, SerializableFieldMeta node) Check if the field value and field type is serializable by this serializer.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) Serialize the field.Methods inherited from class com.emc.documentum.rest.parser.json.writer.field.AbstractFieldJsonSerializer
serializeKeyValue, serializeValue
-
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 writerfieldValue
- field valuenode
- the serializable field metacontentType
- the target media type to serializebindingConfig
- the binding configuration
-
serializable
Description copied from interface:AnnotatedFieldSerializer
Check if the field value and field type is serializable by this serializer.- Parameters:
fieldValue
- the field valuenode
- 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 interfaceAnnotatedFieldBindingProcessor
- Overrides:
isCompatibleMediaType
in classAbstractFieldJsonSerializer
- Parameters:
mediaType
- the media type to check- Returns:
true
for compatible
-