- Type Parameters:
 T- type of object to read
public interface EntityReader<T>
Reader of entity into a specific type.
- 
Method Summary
Modifier and TypeMethodDescriptionread(GenericType<T> type, InputStream stream, Headers headers) Read server request entity and close the stream.read(GenericType<T> type, InputStream stream, Headers requestHeaders, Headers responseHeaders) Read client response entity and close the stream. 
- 
Method Details
- 
read
Read server request entity and close the stream.- Parameters:
 type- type of entitystream- stream to read fromheaders- request headers- Returns:
 - correctly typed entity
 
 - 
read
Read client response entity and close the stream.- Parameters:
 type- type of entitystream- stream to read fromrequestHeaders- request headersresponseHeaders- response headers- Returns:
 - correctly typed entity
 
 
 -