|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.coyote.http11.AbstractOutputBuffer
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. |
protected ByteChunk |
socketBuffer
Socket buffer. |
protected boolean |
useSocketBuffer
Socket buffer (extra buffering to reduce number of packets sent). |
| Fields inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
|---|
activeFilters, buf, committed, filterLibrary, finished, headers, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm |
| Constructor Summary | |
|---|---|
InternalOutputBuffer(Response response)
Default constructor. |
|
InternalOutputBuffer(Response response,
int headerBufferSize)
Alternate constructor. |
|
| Method Summary | |
|---|---|
protected void |
commit()
Commit the response. |
void |
endRequest()
End request. |
void |
flush()
Flush the response. |
OutputStream |
getOutputStream()
Get the underlying socket output stream. |
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 |
setOutputStream(OutputStream outputStream)
Set the underlying socket output stream. |
void |
setSocketBuffer(int socketBufferSize)
Set the socket buffer size. |
| Methods inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
|---|
addActiveFilter, addFilter, clearFilters, doWrite, endHeaders, getFilters, reset, sendHeader, sendHeader, 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
protected ByteChunk socketBuffer
protected boolean useSocketBuffer
| Constructor Detail |
|---|
public InternalOutputBuffer(Response response)
public InternalOutputBuffer(Response response,
int headerBufferSize)
| Method Detail |
|---|
public void setOutputStream(OutputStream outputStream)
public OutputStream getOutputStream()
public void setSocketBuffer(int socketBufferSize)
public void flush()
throws IOException
flush in class AbstractOutputBufferIOException - an underlying I/O error occurredpublic void recycle()
recycle in class AbstractOutputBufferpublic void nextRequest()
nextRequest in class AbstractOutputBuffer
public void endRequest()
throws IOException
endRequest in class AbstractOutputBufferIOException - an underlying I/O error occurred
public void sendAck()
throws IOException
sendAck in class AbstractOutputBufferIOException
protected void commit()
throws IOException
commit in class AbstractOutputBufferIOException - an underlying I/O error occurred
public void realWriteBytes(byte[] cbuf,
int off,
int len)
throws IOException
realWriteBytes in interface ByteChunk.ByteOutputChannelIOException
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||