|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jk.common.JkInputStream
Generic input stream impl on top of ajp
Constructor Summary | |
JkInputStream(MsgContext context)
Deprecated. |
|
JkInputStream(MsgContext context,
int bsize)
|
Method Summary | |
void |
appendHead(Response res)
|
int |
doRead(ByteChunk responseChunk,
Request req)
Return from the input stream. |
int |
doWrite(ByteChunk chunk,
Response res)
Write the response. |
void |
endMessage()
|
boolean |
isReadRequired()
Return the flag saying that the server is sending a body |
boolean |
receive()
Receive a chunk of data. |
void |
recycle()
Must be called before or after each request |
void |
setIsReadRequired(boolean irr)
Set the flag saying that the server is sending a body |
void |
setReplay(ByteChunk replay)
Set the replay buffer for Form auth |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JkInputStream(MsgContext context, int bsize)
public JkInputStream(MsgContext context)
Method Detail |
public void setIsReadRequired(boolean irr)
public boolean isReadRequired()
public void recycle()
public void endMessage() throws java.io.IOException
java.io.IOException
public int doWrite(ByteChunk chunk, Response res) throws java.io.IOException
OutputBuffer
doWrite
in interface OutputBuffer
chunk
- data to writeres
- used to allow buffers that can be shared by multiple responses.
java.io.IOException
public int doRead(ByteChunk responseChunk, Request req) throws java.io.IOException
InputBuffer
doRead
in interface InputBuffer
java.io.IOException
public boolean receive() throws java.io.IOException
java.io.IOException
public void appendHead(Response res) throws java.io.IOException
java.io.IOException
public void setReplay(ByteChunk replay)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |