|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.coyote.http11.AbstractOutputBuffer<Socket> org.apache.coyote.http11.InternalOutputBuffer
public class InternalOutputBuffer
Output buffer.
Nested Class Summary | |
---|---|
protected class |
InternalOutputBuffer.OutputStreamOutputBuffer
This class is an output buffer which will write data to an output stream. |
Field Summary | |
---|---|
protected OutputStream |
outputStream
Underlying output stream. |
Fields inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
---|
activeFilters, buf, byteCount, committed, filterLibrary, finished, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm |
Constructor Summary | |
---|---|
InternalOutputBuffer(Response response,
int headerBufferSize)
Default constructor. |
Method Summary | |
---|---|
protected void |
commit()
Commit the response. |
void |
endRequest()
End request. |
void |
flush()
Flush the response. |
void |
init(SocketWrapper<Socket> socketWrapper,
AbstractEndpoint endpoint)
|
void |
nextRequest()
End processing of current HTTP request. |
void |
realWriteBytes(byte[] cbuf,
int off,
int len)
Callback to write data from the buffer. |
void |
recycle()
Recycle the output buffer. |
void |
sendAck()
Send an acknowledgment. |
void |
setSocketBuffer(int socketBufferSize)
Set the socket buffer size. |
Methods inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
---|
addActiveFilter, addFilter, doWrite, endHeaders, getBytesWritten, getFilters, reset, sendHeader, sendStatus, write, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OutputStream outputStream
Constructor Detail |
---|
public InternalOutputBuffer(Response response, int headerBufferSize)
Method Detail |
---|
public void setSocketBuffer(int socketBufferSize)
public void init(SocketWrapper<Socket> socketWrapper, AbstractEndpoint endpoint) throws IOException
init
in class AbstractOutputBuffer<Socket>
IOException
public void flush() throws IOException
flush
in class AbstractOutputBuffer<Socket>
IOException
- an underlying I/O error occurredpublic void recycle()
recycle
in class AbstractOutputBuffer<Socket>
public void nextRequest()
nextRequest
in class AbstractOutputBuffer<Socket>
public void endRequest() throws IOException
endRequest
in class AbstractOutputBuffer<Socket>
IOException
- an underlying I/O error occurredpublic void sendAck() throws IOException
sendAck
in class AbstractOutputBuffer<Socket>
IOException
protected void commit() throws IOException
commit
in class AbstractOutputBuffer<Socket>
IOException
- an underlying I/O error occurredpublic void realWriteBytes(byte[] cbuf, int off, int len) throws IOException
realWriteBytes
in interface ByteChunk.ByteOutputChannel
IOException
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |