public class EmptyWriterStrategy extends Object implements WriterStrategy<Void>
Constructor and Description |
---|
EmptyWriterStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite(Class<?> type,
String contentType)
Whether the given object type is supported by this writer.
|
Mono<HttpClient.ResponseReceiver<?>> |
write(HttpClient.RequestSender sender,
Void body)
Write a given object to the output message.
|
public boolean canWrite(@Nullable Class<?> type, @Nullable String contentType)
WriterStrategy
canWrite
in interface WriterStrategy<Void>
type
- the type of object to checkcontentType
- the content type for the writetrue
if writable, false
otherwisepublic Mono<HttpClient.ResponseReceiver<?>> write(HttpClient.RequestSender sender, @Nullable Void body)
WriterStrategy
write
in interface WriterStrategy<Void>
sender
- the http request senderbody
- the object to write