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:
ByteChannelBodyWriter,CharSequenceBodyWriter,FileBodyWriter,InputStreamBodyReader,JacksonBodyReader,JacksonBodyWriter,JsonbBodyReader,JsonbBodyWriter,JsonpBodyReader,JsonpBodyWriter,PathBodyWriter,StringBodyReader,ThrowableBodyWriter
public interface MessageBodyOperator<T extends MessageBodyContext>Conversion operator that can be selected based on a requested type and a message body context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaccept(GenericType<?> type, T context)Test if the operator can convert the given type.
-
-
-
Method Detail
-
accept
boolean 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:
trueif the operator can convert the specified type in the given context,falseotherwise
-
-