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.IOExceptionpublic int doWrite(ByteChunk chunk, Response res) throws java.io.IOException
OutputBufferdoWrite in interface OutputBufferchunk - data to writeres - used to allow buffers that can be shared by multiple responses.java.io.IOExceptionpublic int doRead(ByteChunk responseChunk, Request req) throws java.io.IOException
InputBufferdoRead in interface InputBufferjava.io.IOExceptionpublic boolean receive()
throws java.io.IOException
java.io.IOExceptionpublic void appendHead(Response res) throws java.io.IOException
java.io.IOExceptionpublic void setReplay(ByteChunk replay)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.