org.apache.jk.common
public class MsgAjp extends Msg
| Constructor and Description |
|---|
MsgAjp()
Deprecated.
Use the buffer size constructor.
|
MsgAjp(int bsize)
Constructor that takes a buffer size
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendByte(int val) |
void |
appendByteChunk(ByteChunk bc) |
void |
appendBytes(byte[] b,
int off,
int numBytes)
Copy a chunk of bytes into the packet, starting at the current
write position.
|
void |
appendBytes(MessageBytes mb)
Write a String out at the current write position.
|
void |
appendInt(int val)
Add an int.
|
void |
appendLongInt(int val) |
void |
dump(java.lang.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() |
int |
getBytes(byte[] dest)
Copy a chunk of bytes from the packet into an array and advance
the read position past the chunk.
|
void |
getBytes(MessageBytes mb) |
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 java.lang.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.
|
public MsgAjp(int bsize)
public MsgAjp()
public void reset()
public void end()
public void appendInt(int val)
public void appendByte(int val)
appendByte in class Msgpublic void appendLongInt(int val)
appendLongInt in class Msgpublic void appendBytes(MessageBytes mb) throws java.io.IOException
appendBytes in class Msgjava.io.IOExceptionpublic void appendByteChunk(ByteChunk bc) throws java.io.IOException
appendByteChunk in class Msgjava.io.IOExceptionpublic void appendBytes(byte[] b,
int off,
int numBytes)
appendBytes in class Msgb - The array from which to copy bytes.off - The offset into the array at which to start copyingnumBytes - The number of bytes to copy.public int getInt()
public void getBytes(MessageBytes mb)
public int getBytes(byte[] dest)
public int getLongInt()
getLongInt in class Msgpublic int getHeaderLength()
getHeaderLength in class Msgpublic int processHeader()
processHeader in class Msgpublic static java.lang.String hexLine(byte[] buf,
int start,
int len)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.