public interface FieldTypeResolver
| Modifier and Type | Method and Description |
|---|---|
static FieldTypeResolver |
forContent(byte[] content,
org.springframework.http.MediaType contentType)
Deprecated.
since 2.0.4 in favor of
forContentWithDescriptors(byte[], MediaType, List) |
static FieldTypeResolver |
forContentWithDescriptors(byte[] content,
org.springframework.http.MediaType contentType,
java.util.List<FieldDescriptor> descriptors)
Create a
FieldTypeResolver for the given content and
contentType, described by the given descriptors. |
java.lang.Object |
resolveFieldType(FieldDescriptor fieldDescriptor)
Resolves the type of the field that is described by the given
fieldDescriptor based on the content of the payload. |
@Deprecated static FieldTypeResolver forContent(byte[] content, org.springframework.http.MediaType contentType)
forContentWithDescriptors(byte[], MediaType, List)FieldTypeResolver for the given content and
contentType.content - the payload that the FieldTypeResolver should handlecontentType - the content type of the payloadFieldTypeResolverstatic FieldTypeResolver forContentWithDescriptors(byte[] content, org.springframework.http.MediaType contentType, java.util.List<FieldDescriptor> descriptors)
FieldTypeResolver for the given content and
contentType, described by the given descriptors.content - the payload that the FieldTypeResolver should handlecontentType - the content type of the payloaddescriptors - the descriptors of the contentFieldTypeResolverjava.lang.Object resolveFieldType(FieldDescriptor fieldDescriptor)
fieldDescriptor based on the content of the payload.fieldDescriptor - the field descriptor