org.openqa.jetty.http.ajp
Class AJP13Packet
java.lang.Object
org.openqa.jetty.http.ajp.AJP13Packet
- Direct Known Subclasses:
- AJP13RequestPacket, AJP13ResponsePacket
public abstract class AJP13Packet
- extends Object
- Version:
- $Id: AJP13Packet.java,v 1.24 2006/10/08 14:13:05 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
__MAX_BUF
public static final int __MAX_BUF
- See Also:
- Constant Field Values
__HDR_SIZE
public static final int __HDR_SIZE
- See Also:
- Constant Field Values
__DATA_HDR
public static final int __DATA_HDR
- See Also:
- Constant Field Values
__MAX_DATA
public static final int __MAX_DATA
- See Also:
- Constant Field Values
__FORWARD_REQUEST
public static final byte __FORWARD_REQUEST
- See Also:
- Constant Field Values
__SHUTDOWN
public static final byte __SHUTDOWN
- See Also:
- Constant Field Values
__SEND_BODY_CHUNK
public static final byte __SEND_BODY_CHUNK
- See Also:
- Constant Field Values
__SEND_HEADERS
public static final byte __SEND_HEADERS
- See Also:
- Constant Field Values
__END_RESPONSE
public static final byte __END_RESPONSE
- See Also:
- Constant Field Values
__GET_BODY_CHUNK
public static final byte __GET_BODY_CHUNK
- See Also:
- Constant Field Values
__method
public static final String[] __method
__header
public String[] __header
__headerMap
protected HashMap __headerMap
AJP13Packet
public AJP13Packet(byte[] buffer,
int len)
AJP13Packet
public AJP13Packet(byte[] buffer)
AJP13Packet
public AJP13Packet(int size)
populateHeaders
public abstract void populateHeaders()
- Abstract method to populate the header array and hash map.
prepare
public void prepare()
destroy
public void destroy()
reset
public void reset()
getBuffer
public byte[] getBuffer()
resetData
public void resetData()
getMark
public int getMark()
getBufferSize
public int getBufferSize()
unconsumedData
public int unconsumedData()
- Returns:
- Bytes of data remaining
unconsumedCapacity
public int unconsumedCapacity()
- Returns:
- Bytes of capacity remaining
read
public boolean read(InputStream in)
throws IOException
- Throws:
IOException
write
public void write(OutputStream out)
throws IOException
- Throws:
IOException
getByte
public byte getByte()
getBytes
public int getBytes(byte[] buf,
int offset,
int length)
getBoolean
public boolean getBoolean()
getInt
public int getInt()
getString
public String getString()
getMethod
public String getMethod()
getHeader
public String getHeader()
addByte
public void addByte(byte b)
addBytes
public int addBytes(byte[] buf,
int offset,
int length)
addBoolean
public void addBoolean(boolean b)
addInt
public void addInt(int i)
setInt
public void setInt(int mark,
int i)
addString
public void addString(String s)
throws IOException
- Throws:
IOException
addHeader
public void addHeader(String s)
throws IOException
- Throws:
IOException
getDataSize
public int getDataSize()
setDataSize
public void setDataSize()
setDataSize
public void setDataSize(int s)
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(int max)
Copyright © 2011. All Rights Reserved.