org.apache.jk.core
public abstract class Msg extends java.lang.Object
Constructor and Description |
---|
Msg() |
Modifier and Type | Method and Description |
---|---|
abstract void |
appendByte(int val) |
abstract void |
appendByteChunk(ByteChunk bc) |
abstract void |
appendBytes(byte[] b,
int off,
int numBytes)
Copy a chunk of bytes into the packet, starting at the current
write position.
|
abstract void |
appendBytes(MessageBytes mb) |
abstract void |
appendInt(int val) |
abstract void |
appendLongInt(int val) |
abstract void |
dump(java.lang.String msg) |
abstract 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.
|
abstract byte[] |
getBuffer() |
abstract byte |
getByte() |
abstract int |
getBytes(byte[] dest)
Copy a chunk of bytes from the packet into an array and advance
the read position past the chunk.
|
abstract void |
getBytes(MessageBytes mb) |
abstract int |
getHeaderLength() |
abstract int |
getInt()
Read an integer from packet, and advance the read position past
it.
|
abstract int |
getLen() |
abstract 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) |
abstract byte |
peekByte() |
abstract int |
peekInt() |
abstract int |
processHeader() |
abstract void |
reset()
Prepare this packet for accumulating a message from the container to
the web server.
|
public abstract void reset()
public abstract void end()
public abstract void appendInt(int val)
public abstract void appendByte(int val)
public abstract void appendLongInt(int val)
public abstract void appendBytes(MessageBytes mb) throws java.io.IOException
java.io.IOException
public abstract void appendByteChunk(ByteChunk bc) throws java.io.IOException
java.io.IOException
public abstract void appendBytes(byte[] b, int off, int numBytes)
b
- 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 abstract int getInt()
public abstract int peekInt()
public abstract byte getByte()
public abstract byte peekByte()
public abstract void getBytes(MessageBytes mb)
public abstract int getBytes(byte[] dest)
public abstract int getLongInt()
public abstract int getHeaderLength()
public abstract int processHeader()
public abstract byte[] getBuffer()
public abstract int getLen()
public abstract void dump(java.lang.String msg)
public static java.lang.String hexLine(byte[] buf, int start, int len)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.