private class ServletServerHttpResponse.ResponseBodyProcessor extends AbstractListenerWriteProcessor<DataBuffer>
Modifier and Type | Field and Description |
---|---|
private ServletOutputStream |
outputStream |
currentData, logger
Constructor and Description |
---|
ResponseBodyProcessor(ServletOutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isDataEmpty(DataBuffer dataBuffer)
Whether the given data item contains any actual data to be processed.
|
protected boolean |
isWritePossible()
Whether writing is possible.
|
protected void |
releaseData()
Called when the current received data item can be released.
|
protected boolean |
write(DataBuffer dataBuffer)
Writes the given data to the output.
|
cancel, onComplete, onError, onNext, onSubscribe, onWritePossible, receiveData, subscribe
public ResponseBodyProcessor(ServletOutputStream outputStream)
protected boolean isWritePossible()
AbstractListenerWriteProcessor
isWritePossible
in class AbstractListenerWriteProcessor<DataBuffer>
protected void releaseData()
AbstractListenerWriteProcessor
releaseData
in class AbstractListenerWriteProcessor<DataBuffer>
protected boolean isDataEmpty(DataBuffer dataBuffer)
AbstractListenerWriteProcessor
isDataEmpty
in class AbstractListenerWriteProcessor<DataBuffer>
protected boolean write(DataBuffer dataBuffer) throws java.io.IOException
AbstractListenerWriteProcessor
write
in class AbstractListenerWriteProcessor<DataBuffer>
dataBuffer
- the data to writejava.io.IOException