public class EmptyReaderStrategy extends Object implements ReaderStrategy<Void>
| Constructor and Description |
|---|
EmptyReaderStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> type,
String contentType)
Whether the given object type is supported by this reader.
|
Mono<Void> |
read(ByteBufMono content,
Class<Void> responseType)
Read from the input message and encode to a single object.
|
public boolean canRead(@Nullable Class<?> type, @Nullable String contentType)
ReaderStrategycanRead in interface ReaderStrategy<Void>type - the type of object to checkcontentType - the content type for the readtrue if readable, false otherwisepublic Mono<Void> read(ByteBufMono content, Class<Void> responseType)
ReaderStrategyread in interface ReaderStrategy<Void>content - the response contentsresponseType - the type of object in the response which must have been previously checked via ReaderStrategy.canRead(Class, String)