|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.TaskContext
public class TaskContext
This class encapsulates the logic required to synchronized unblocking socket request with the blocked stream architecture of Tomcat.
Constructor Summary | |
---|---|
TaskContext()
Create a instance of this object. |
Method Summary | |
---|---|
void |
flush()
Flush bytes to the NonBlockinginputStream |
InputStream |
getInputStream()
Return the input stream used by this request. |
OutputStream |
getOutputStream()
|
void |
recycle()
Recycle all streams used by this object. |
void |
setInputStream(InputStream inputStream)
|
void |
setOutputStream(ByteBufferStream outputStream)
|
void |
write(ByteBuffer byteBuffer)
Fill the current output stream with the available bytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskContext()
Method Detail |
---|
public InputStream getInputStream()
NonBlockinginputStream
public OutputStream getOutputStream()
public void setInputStream(InputStream inputStream)
public void setOutputStream(ByteBufferStream outputStream)
public void write(ByteBuffer byteBuffer) throws IOException
IOException
public void flush() throws IOException
NonBlockinginputStream
IOException
public void recycle() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |