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
,MultiPartBodyReader
,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
Nested Classes Modifier and Type Interface Description static class
MessageBodyOperator.PredicateResult
Status whether requested class type is supported by the operator.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageBodyOperator.PredicateResult
accept(GenericType<?> type, T context)
Test if the operator can convert the given type.
-
-
-
Method Detail
-
accept
MessageBodyOperator.PredicateResult accept(GenericType<?> type, T context)
Test if the operator can convert the given type.- Parameters:
type
- the requested typecontext
- the context providing the headers abstraction- Returns:
MessageBodyOperator.PredicateResult
result
-
-