Interface EntityReader<T>

Type Parameters:
T - type of object to read

public interface EntityReader<T>
Reader of entity into a specific type.
  • Method Summary

    Modifier and Type
    Method
    Description
    read(io.helidon.common.GenericType<T> type, InputStream stream, Headers headers)
    Read server request entity and close the stream.
    read(io.helidon.common.GenericType<T> type, InputStream stream, Headers requestHeaders, Headers responseHeaders)
    Read client response entity and close the stream.
  • Method Details

    • read

      T read(io.helidon.common.GenericType<T> type, InputStream stream, Headers headers)
      Read server request entity and close the stream.
      Parameters:
      type - type of entity
      stream - stream to read from
      headers - request headers
      Returns:
      correctly typed entity
    • read

      T read(io.helidon.common.GenericType<T> type, InputStream stream, Headers requestHeaders, Headers responseHeaders)
      Read client response entity and close the stream.
      Parameters:
      type - type of entity
      stream - stream to read from
      requestHeaders - request headers
      responseHeaders - response headers
      Returns:
      correctly typed entity