org.mortbay.http.ajp
public abstract class AJP13Packet extends Object
Version: $Id: AJP13Packet.java,v 1.24 2006/10/08 14:13:05 gregwilkins Exp $
Field Summary | |
---|---|
static int | __DATA_HDR |
static byte | __END_RESPONSE |
static byte | __FORWARD_REQUEST |
static byte | __GET_BODY_CHUNK |
String[] | __header |
protected HashMap | __headerMap |
static int | __HDR_SIZE |
static String[] | __method |
static int | __MAX_BUF |
static int | __MAX_DATA |
static byte | __SEND_BODY_CHUNK |
static byte | __SEND_HEADERS |
static byte | __SHUTDOWN |
Constructor Summary | |
---|---|
AJP13Packet(byte[] buffer, int len) | |
AJP13Packet(byte[] buffer) | |
AJP13Packet(int size) |
Method Summary | |
---|---|
void | addBoolean(boolean b) |
void | addByte(byte b) |
int | addBytes(byte[] buf, int offset, int length) |
void | addHeader(String s) |
void | addInt(int i) |
void | addString(String s) |
void | destroy() |
boolean | getBoolean() |
byte[] | getBuffer() |
int | getBufferSize() |
byte | getByte() |
int | getBytes(byte[] buf, int offset, int length) |
int | getDataSize() |
String | getHeader() |
int | getInt() |
int | getMark() |
String | getMethod() |
String | getString() |
abstract void | populateHeaders()
Abstract method to populate the header array and hash map.
|
void | prepare() |
boolean | read(InputStream in) |
void | reset() |
void | resetData() |
void | setDataSize() |
void | setDataSize(int s) |
void | setInt(int mark, int i) |
String | toString() |
String | toString(int max) |
int | unconsumedCapacity() |
int | unconsumedData() |
void | write(OutputStream out) |
Returns: Bytes of capacity remaining
Returns: Bytes of data remaining