Interface RawMessageBodyHandler<T>

Type Parameters:
T - The raw message type
All Superinterfaces:
ChunkedMessageBodyReader<T>, MessageBodyHandler<T>, MessageBodyReader<T>, MessageBodyWriter<T>
All Known Implementing Classes:
ByteBufRawMessageBodyHandler, NettyWritableBodyWriter, WritableBodyWriter

@Internal public interface RawMessageBodyHandler<T> extends MessageBodyHandler<T>, ChunkedMessageBodyReader<T>
A body handler that is responsible for "raw" writing/reading, i.e. without a format like JSON. These handlers do not care about the media type, they assume the user is passing in pre-formatted data.
  • Method Details

    • getTypes

      @NonNull @NonNull Collection<? extends Class<?>> getTypes()
      Supported types of this raw body handler. Exact match is used for reading. For writing, the match is covariant. For example, if this returns [String, CharSequence], then this raw handler will be used for reading types declared as exactly String or CharSequence, and will additionally be used for writing (but not reading) subtypes (e.g. StringBuilder).
      Returns:
      The supported types