T
- the subsection extractor subclasspublic interface PayloadSubsectionExtractor<T extends PayloadSubsectionExtractor<T>>
Modifier and Type | Method and Description |
---|---|
byte[] |
extractSubsection(byte[] payload,
org.springframework.http.MediaType contentType)
Extracts a subsection of the given
payload that has the given
contentType . |
default byte[] |
extractSubsection(byte[] payload,
org.springframework.http.MediaType contentType,
java.util.List<FieldDescriptor> descriptors)
Extracts a subsection of the given
payload that has the given
contentType and that is described by the given descriptors . |
java.lang.String |
getSubsectionId()
Returns an identifier for the subsection that this extractor will extract.
|
T |
withSubsectionId(java.lang.String subsectionId)
Returns an extractor with the given
subsectionId . |
byte[] extractSubsection(byte[] payload, org.springframework.http.MediaType contentType)
payload
that has the given
contentType
.payload
- the payloadcontentType
- the content type of the payloaddefault byte[] extractSubsection(byte[] payload, org.springframework.http.MediaType contentType, java.util.List<FieldDescriptor> descriptors)
payload
that has the given
contentType
and that is described by the given descriptors
.payload
- the payloadcontentType
- the content type of the payloaddescriptors
- descriptors that describe the payloadjava.lang.String getSubsectionId()
T withSubsectionId(java.lang.String subsectionId)
subsectionId
.subsectionId
- the subsection ID