|
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.InternalNioOutputBuffer
public class InternalNioOutputBuffer
Output buffer.
| Nested Class Summary | |
|---|---|
protected class |
InternalNioOutputBuffer.SocketOutputBuffer
This class is an output buffer which will write data to an output stream. |
| Field Summary | |
|---|---|
protected MutableInteger |
lastWrite
Number of bytes last written |
protected NioSelectorPool |
pool
Selector pool, for blocking reads and blocking writes |
protected NioChannel |
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 | |
|---|---|
InternalNioOutputBuffer(Response response)
Default constructor. |
|
InternalNioOutputBuffer(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. |
NioSelectorPool |
getSelectorPool()
|
NioChannel |
getSocket()
Get the underlying socket input stream. |
boolean |
isWritable()
|
void |
recycle()
Recycle the output buffer. |
void |
sendAck()
Send an acknowledgment. |
void |
setSelectorPool(NioSelectorPool pool)
|
void |
setSocket(NioChannel 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 MutableInteger lastWrite
protected NioChannel socket
protected NioSelectorPool pool
| Constructor Detail |
|---|
public InternalNioOutputBuffer(Response response)
public InternalNioOutputBuffer(Response response,
int headerBufferSize)
| Method Detail |
|---|
public void setSocket(NioChannel socket)
public NioChannel getSocket()
public void setSelectorPool(NioSelectorPool pool)
public NioSelectorPool getSelectorPool()
public void flush()
throws IOException
flush in class AbstractOutputBufferIOException - an underlying I/O error occurredpublic void recycle()
recycle in class AbstractOutputBuffer
public void endRequest()
throws IOException
endRequest in class AbstractOutputBufferIOException - an underlying I/O error occurredpublic boolean isWritable()
public void sendAck()
throws IOException
sendAck in class AbstractOutputBufferIOException
protected void commit()
throws IOException
commit in class AbstractOutputBufferIOException - an underlying I/O error occurred
protected 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 | ||||||||