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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
doWrite
(ByteBuffer chunk) Write the given data to the response.long
Bytes written to the underlying socket.
-
Constructor Details
-
SocketOutputBuffer
protected SocketOutputBuffer()
-
-
Method Details
-
doWrite
Description copied from interface:OutputBuffer
Write the given data to the response. The caller owns the chunks.- Specified by:
doWrite
in interfaceOutputBuffer
- 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
-
getBytesWritten
public long getBytesWritten()Description copied from interface:OutputBuffer
Bytes written to the underlying socket. This includes the effects of chunking, compression, etc.- Specified by:
getBytesWritten
in interfaceOutputBuffer
- Returns:
- Bytes written for the current request
-