Package org.apache.coyote.ajp
Class AjpProcessor.SocketOutputBuffer
java.lang.Object
org.apache.coyote.ajp.AjpProcessor.SocketOutputBuffer
- All Implemented Interfaces:
- OutputBuffer
- Enclosing class:
- AjpProcessor
This class is an output buffer which will write data to an output stream.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintdoWrite(ByteBuffer chunk) Write the given data to the response.longBytes written to the underlying socket.
- 
Constructor Details- 
SocketOutputBufferprotected SocketOutputBuffer()
 
- 
- 
Method Details- 
doWriteDescription copied from interface:OutputBufferWrite the given data to the response. The caller owns the chunks.- Specified by:
- doWritein interface- OutputBuffer
- Parameters:
- chunk- data to write
- Returns:
- The number of bytes written which may be less than available in the input chunk
- Throws:
- IOException- an underlying I/O error occurred
 
- 
getBytesWrittenpublic long getBytesWritten()Description copied from interface:OutputBufferBytes written to the underlying socket. This includes the effects of chunking, compression, etc.- Specified by:
- getBytesWrittenin interface- OutputBuffer
- Returns:
- Bytes written for the current request
 
 
-