|
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.InternalAprOutputBuffer
public class InternalAprOutputBuffer
Output buffer.
Nested Class Summary | |
---|---|
protected class |
InternalAprOutputBuffer.SocketOutputBuffer
This class is an output buffer which will write data to an output stream. |
Field Summary | |
---|---|
protected ByteBuffer |
bbuf
Direct byte buffer used for writing. |
protected long |
socket
Underlying socket. |
Fields inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
---|
activeFilters, buf, committed, filterLibrary, finished, headers, lastActiveFilter, outputStreamOutputBuffer, pos, response, sm |
Constructor Summary | |
---|---|
InternalAprOutputBuffer(Response response)
Default constructor. |
|
InternalAprOutputBuffer(Response response,
int headerBufferSize)
Alternate constructor. |
Method Summary | |
---|---|
protected void |
commit()
Commit the response. |
void |
endRequest()
End request. |
void |
flush()
Flush the response. |
protected void |
flushBuffer()
Callback to write data from the buffer. |
long |
getSocket()
Get the underlying socket input stream. |
void |
recycle()
Recycle the output buffer. |
void |
sendAck()
Send an acknowledgment. |
void |
setSocket(long socket)
Set the underlying socket. |
Methods inherited from class org.apache.coyote.http11.AbstractOutputBuffer |
---|
addActiveFilter, addFilter, clearFilters, doWrite, endHeaders, getFilters, nextRequest, 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 long socket
protected ByteBuffer bbuf
Constructor Detail |
---|
public InternalAprOutputBuffer(Response response)
public InternalAprOutputBuffer(Response response, int headerBufferSize)
Method Detail |
---|
public void setSocket(long socket)
public long getSocket()
public void flush() throws IOException
flush
in class AbstractOutputBuffer
IOException
- an underlying I/O error occurredpublic void recycle()
recycle
in class AbstractOutputBuffer
public void endRequest() throws IOException
endRequest
in class AbstractOutputBuffer
IOException
- an underlying I/O error occurredpublic void sendAck() throws IOException
sendAck
in class AbstractOutputBuffer
IOException
protected void commit() throws IOException
commit
in class AbstractOutputBuffer
IOException
- an underlying I/O error occurredprotected void flushBuffer() throws IOException
IOException
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |