org.apache.jk.common
public class JkInputStream extends java.lang.Object implements InputBuffer, OutputBuffer
Constructor and Description |
---|
JkInputStream(MsgContext context)
Deprecated.
|
JkInputStream(MsgContext context,
int bsize) |
Modifier and Type | Method and Description |
---|---|
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
|
public JkInputStream(MsgContext context, int bsize)
public JkInputStream(MsgContext context)
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)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.