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 java.io.IOException
flush
in class AbstractOutputBuffer<NioChannel>
java.io.IOException
- an underlying I/O error occurredpublic void recycle()
recycle
in class AbstractOutputBuffer<NioChannel>
public void endRequest() throws java.io.IOException
endRequest
in class AbstractOutputBuffer<NioChannel>
java.io.IOException
- an underlying I/O error occurredpublic void sendAck() throws java.io.IOException
sendAck
in class AbstractOutputBuffer<NioChannel>
java.io.IOException
public void init(SocketWrapper<NioChannel> socketWrapper, AbstractEndpoint<NioChannel> endpoint) throws java.io.IOException
init
in class AbstractOutputBuffer<NioChannel>
java.io.IOException
protected void commit() throws java.io.IOException
commit
in class AbstractOutputBuffer<NioChannel>
java.io.IOException
- an underlying I/O error occurredCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.