org.walluck.oscar.handlers.proxy
Class ProxyPacket

java.lang.Object
  extended byorg.walluck.oscar.handlers.proxy.ProxyPacket

public class ProxyPacket
extends java.lang.Object

Represents an AOL Proxy packet.

Since:
1.0
Version:
1.0
Author:
David Walluck

Field Summary
static int CMDTYPE_ACK
          Indicates an ack (sent by server).
static int CMDTYPE_ERROR
          Indicates an error (sent by server).
static int CMDTYPE_INIT_RECV
          The first command sent to the server when receiving a connection via the AOL Proxy Server (sent by client).
static int CMDTYPE_INIT_SEND
          The first command sent to the server when creating a connection via the AOL Proxy Server (sent by client).
static int CMDTYPE_READY
          Indicates that the proxy initialization process has finished (sent by server).
static int FLAGS_DEFAULT_FROM_CLIENT
          The default flags sent by the client connecting to an AOL Proxy Server.
static int FLAGS_DEFAULT_FROM_SERVER
          The default flags sent by the AOL Proxy Server.
static int PACKETVERSION_DEFAULT
          The default packet version in WinAIM 5.2
 
Constructor Summary
ProxyPacket()
          Creates a new proxy packet.
 
Method Summary
 byte[] getData()
          Get the Data value.
 int getFlags()
          Get the Flags value.
 int getType()
          Get the Type value.
 int getUnknown()
          Get the Unknown value.
 int getVersion()
          Get the Version value.
 void setData(byte[] newData)
          Set the Data value.
 void setFlags(int newFlags)
          Set the Flags value.
 void setType(int newType)
          Set the Type value.
 void setUnknown(int newUnknown)
          Set the Unknown value.
 void setVersion(int newVersion)
          Set the Version value.
 java.lang.String toString()
          Returns the string representation of this proxy packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PACKETVERSION_DEFAULT

public static final int PACKETVERSION_DEFAULT
The default packet version in WinAIM 5.2

See Also:
Constant Field Values

CMDTYPE_ERROR

public static final int CMDTYPE_ERROR
Indicates an error (sent by server).

See Also:
Constant Field Values

CMDTYPE_INIT_SEND

public static final int CMDTYPE_INIT_SEND
The first command sent to the server when creating a connection via the AOL Proxy Server (sent by client).

See Also:
Constant Field Values

CMDTYPE_ACK

public static final int CMDTYPE_ACK
Indicates an ack (sent by server).

See Also:
Constant Field Values

CMDTYPE_INIT_RECV

public static final int CMDTYPE_INIT_RECV
The first command sent to the server when receiving a connection via the AOL Proxy Server (sent by client).

See Also:
Constant Field Values

CMDTYPE_READY

public static final int CMDTYPE_READY
Indicates that the proxy initialization process has finished (sent by server).

See Also:
Constant Field Values

FLAGS_DEFAULT_FROM_SERVER

public static final int FLAGS_DEFAULT_FROM_SERVER
The default flags sent by the AOL Proxy Server.

See Also:
Constant Field Values

FLAGS_DEFAULT_FROM_CLIENT

public static final int FLAGS_DEFAULT_FROM_CLIENT
The default flags sent by the client connecting to an AOL Proxy Server.

See Also:
Constant Field Values
Constructor Detail

ProxyPacket

public ProxyPacket()
Creates a new proxy packet.

Method Detail

getVersion

public int getVersion()
Get the Version value.

Returns:
the Version value.

setVersion

public void setVersion(int newVersion)
Set the Version value.

Parameters:
newVersion - The new Version value.

getType

public int getType()
Get the Type value.

Returns:
the Type value.

setType

public void setType(int newType)
Set the Type value.

Parameters:
newType - The new Type value.

getUnknown

public int getUnknown()
Get the Unknown value.

Returns:
the Unknown value.

setUnknown

public void setUnknown(int newUnknown)
Set the Unknown value.

Parameters:
newUnknown - The new Unknown value.

getFlags

public int getFlags()
Get the Flags value.

Returns:
the Flags value.

setFlags

public void setFlags(int newFlags)
Set the Flags value.

Parameters:
newFlags - The new Flags value.

getData

public byte[] getData()
Get the Data value.

Returns:
the Data value.

setData

public void setData(byte[] newData)
Set the Data value.

Parameters:
newData - The new Data value.

toString

public java.lang.String toString()
Returns the string representation of this proxy packet.

Returns:
the string represntation of this proxy packet