public class InternalNioOutputBuffer extends AbstractOutputBuffer<NioChannel>
Modifier and Type | Class and Description |
---|---|
protected class |
InternalNioOutputBuffer.SocketOutputBuffer
This class is an output buffer which will write data to an output
stream.
|
activeFilters, buf, byteCount, committed, filterLibrary, finished, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm
Constructor and Description |
---|
InternalNioOutputBuffer(Response response,
int headerBufferSize)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
Commit the response.
|
void |
endRequest()
End request.
|
void |
flush()
Flush the response.
|
void |
init(SocketWrapper<NioChannel> socketWrapper,
AbstractEndpoint<NioChannel> endpoint) |
void |
recycle()
Recycle the output buffer.
|
void |
sendAck()
Send an acknowledgment.
|
addActiveFilter, addFilter, doWrite, endHeaders, getBytesWritten, getFilters, nextRequest, reset, sendHeader, sendStatus, write, write, write, write, write, write
public InternalNioOutputBuffer(Response response, int headerBufferSize)
public void flush() throws IOException
flush
in class AbstractOutputBuffer<NioChannel>
IOException
- an underlying I/O error occurredpublic void recycle()
recycle
in class AbstractOutputBuffer<NioChannel>
public void endRequest() throws IOException
endRequest
in class AbstractOutputBuffer<NioChannel>
IOException
- an underlying I/O error occurredpublic void sendAck() throws IOException
sendAck
in class AbstractOutputBuffer<NioChannel>
IOException
public void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws IOException
init
in class AbstractOutputBuffer<NioChannel>
IOException
protected void commit() throws IOException
commit
in class AbstractOutputBuffer<NioChannel>
IOException
- an underlying I/O error occurredCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.