org.apache.jk.common
public class MsgAjp extends Msg
Constructor Summary | |
---|---|
MsgAjp(int bsize)
Constructor that takes a buffer size | |
MsgAjp()
No arg constructor. |
Method Summary | |
---|---|
void | appendByte(int val) |
void | appendByteChunk(ByteChunk bc) |
void | appendBytes(MessageBytes mb)
Write a String out at the current write position. |
void | appendBytes(byte[] b, int off, int numBytes)
Copy a chunk of bytes into the packet, starting at the current
write position. |
void | appendInt(int val)
Add an int.
|
void | appendLongInt(int val) |
void | dump(String msg) |
void | end()
For a packet to be sent to the web server, finish the process of
accumulating data and write the length of the data payload into
the header. |
byte[] | getBuffer() |
byte | getByte() |
void | getBytes(MessageBytes mb) |
int | getBytes(byte[] dest)
Copy a chunk of bytes from the packet into an array and advance
the read position past the chunk. |
int | getHeaderLength() |
int | getInt()
Read an integer from packet, and advance the read position past
it. |
int | getLen() |
int | getLongInt()
Read a 32 bits integer from packet, and advance the read position past
it. |
static String | hexLine(byte[] buf, int start, int len) |
byte | peekByte() |
int | peekInt() |
int | processHeader() |
void | reset()
Prepare this packet for accumulating a message from the container to
the web server. |
Deprecated: Use the buffer size constructor.
No arg constructor.Parameters: b The array from which to copy bytes. off The offset into the array at which to start copying numBytes The number of bytes to copy.
Parameters: val The integer to write.
Returns: The number of bytes copied.