Module io.helidon.media.common
Package io.helidon.media.common
Interface MessageBodyOperator<T extends MessageBodyContext>
- Type Parameters:
T
- Type supported by the operator
- All Known Subinterfaces:
MessageBodyReader<T>
,MessageBodyStreamReader<T>
,MessageBodyStreamWriter<T>
,MessageBodyWriter<T>
- All Known Implementing Classes:
BodyPartBodyStreamReader
,BodyPartBodyStreamWriter
,MultiPartBodyWriter
public interface MessageBodyOperator<T extends MessageBodyContext>
Conversion operator that can be selected based on a requested type and a
message body context.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Status whether requested class type is supported by the operator. -
Method Summary
Modifier and TypeMethodDescriptionaccept
(GenericType<?> type, T context) Test if the operator can convert the given type.
-
Method Details
-
accept
Test if the operator can convert the given type.- Parameters:
type
- the requested typecontext
- the context providing the headers abstraction- Returns:
MessageBodyOperator.PredicateResult
result
-