Class HttpMessageEntityReader

java.lang.Object
io.micronaut.jaxrs.common.HttpMessageEntityReader

@Internal public class HttpMessageEntityReader extends Object
En entity reader.
Since:
4.6
Author:
Denis Stepanov
  • Field Details

  • Constructor Details

    • HttpMessageEntityReader

      public HttpMessageEntityReader()
  • Method Details

    • readEntity

      public <T> T readEntity(HttpMessage<?> message, Argument<T> entityType)
      Read the entity.
      Type Parameters:
      T - The entity type
      Parameters:
      message - The message
      entityType - the entity type
      Returns:
      The entity value
    • readEntity

      public <T> T readEntity(ByteBuffer<?> byteBuffer, Argument<T> entityType)
      Read the entity.
      Type Parameters:
      T - The entity type
      Parameters:
      byteBuffer - The buffer
      entityType - the entity type
      Returns:
      The entity value