public abstract class AJP13Packet extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
__DATA_HDR |
static byte |
__END_RESPONSE |
static byte |
__FORWARD_REQUEST |
static byte |
__GET_BODY_CHUNK |
static int |
__HDR_SIZE |
String[] |
__header |
protected HashMap |
__headerMap |
static int |
__MAX_BUF |
static int |
__MAX_DATA |
static String[] |
__method |
static byte |
__SEND_BODY_CHUNK |
static byte |
__SEND_HEADERS |
static byte |
__SHUTDOWN |
| Constructor and Description |
|---|
AJP13Packet(byte[] buffer) |
AJP13Packet(byte[] buffer,
int len) |
AJP13Packet(int size) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static final int __MAX_BUF
public static final int __HDR_SIZE
public static final int __DATA_HDR
public static final int __MAX_DATA
public static final byte __FORWARD_REQUEST
public static final byte __SHUTDOWN
public static final byte __SEND_BODY_CHUNK
public static final byte __SEND_HEADERS
public static final byte __END_RESPONSE
public static final byte __GET_BODY_CHUNK
public static final String[] __method
public String[] __header
protected HashMap __headerMap
public AJP13Packet(byte[] buffer,
int len)
public AJP13Packet(byte[] buffer)
public AJP13Packet(int size)
public abstract void populateHeaders()
public void prepare()
public void destroy()
public void reset()
public byte[] getBuffer()
public void resetData()
public int getMark()
public int getBufferSize()
public int unconsumedData()
public int unconsumedCapacity()
public boolean read(InputStream in) throws IOException
IOExceptionpublic void write(OutputStream out) throws IOException
IOExceptionpublic byte getByte()
public int getBytes(byte[] buf,
int offset,
int length)
public boolean getBoolean()
public int getInt()
public String getString()
public String getMethod()
public String getHeader()
public void addByte(byte b)
public int addBytes(byte[] buf,
int offset,
int length)
public void addBoolean(boolean b)
public void addInt(int i)
public void setInt(int mark,
int i)
public void addString(String s) throws IOException
IOExceptionpublic void addHeader(String s) throws IOException
IOExceptionpublic int getDataSize()
public void setDataSize()
public void setDataSize(int s)
public String toString(int max)
Copyright © 2015. All Rights Reserved.