org.apache.jk.common

Class JkInputStream

public class JkInputStream extends Object implements InputBuffer, OutputBuffer

Generic input stream impl on top of ajp
Constructor Summary
JkInputStream(MsgContext context, int bsize)
JkInputStream(MsgContext context)
Method Summary
voidappendHead(Response res)
intdoRead(ByteChunk responseChunk, Request req)
intdoWrite(ByteChunk chunk, Response res)
voidendMessage()
booleanisReadRequired()
Return the flag saying that the server is sending a body
booleanreceive()
Receive a chunk of data.
voidrecycle()
Must be called before or after each request
voidsetIsReadRequired(boolean irr)
Set the flag saying that the server is sending a body
voidsetReplay(ByteChunk replay)
Set the replay buffer for Form auth

Constructor Detail

JkInputStream

public JkInputStream(MsgContext context, int bsize)

JkInputStream

public JkInputStream(MsgContext context)

Deprecated:

Method Detail

appendHead

public void appendHead(Response res)

doRead

public int doRead(ByteChunk responseChunk, Request req)

doWrite

public int doWrite(ByteChunk chunk, Response res)

endMessage

public void endMessage()

isReadRequired

public boolean isReadRequired()
Return the flag saying that the server is sending a body

receive

public boolean receive()
Receive a chunk of data. Called to implement the 'special' packet in ajp13 and to receive the data after we send a GET_BODY packet

recycle

public void recycle()
Must be called before or after each request

setIsReadRequired

public void setIsReadRequired(boolean irr)
Set the flag saying that the server is sending a body

setReplay

public void setReplay(ByteChunk replay)
Set the replay buffer for Form auth
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.