- All Superinterfaces:
Part
A part with payload decoding support.
Implementors should rely on MediaTypeConverter
to decode a part's payload based on its content type.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<A> InboundDataDecoder
<A> Returns a decoder to decode the part's payload to the specified type based on the part's content type.<A> InboundDataDecoder
<A> Returns a decoder to decode the part's payload to the specified type based on the part's content type.
-
Method Details
-
decoder
Returns a decoder to decode the part's payload to the specified type based on the part's content type.
- Type Parameters:
A
- the decoded type- Parameters:
type
- a class of A- Returns:
- a decoder
-
decoder
Returns a decoder to decode the part's payload to the specified type based on the part's content type.
- Type Parameters:
A
- the decoded type- Parameters:
type
- the decoded type- Returns:
- a decoder
-