Interface EntityReader<T>

Type Parameters:
T - type of object to read

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

    • read

      T read(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(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