- Type Parameters:
- T- type of object to read
public interface EntityReader<T>
Reader of entity into a specific type.
- 
Method SummaryModifier 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- 
readRead server request entity and close the stream.- Parameters:
- type- type of entity
- stream- stream to read from
- headers- request headers
- Returns:
- correctly typed entity
 
- 
readRead 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
 
 
-