net.sf.cindy.packet
Class DelegatePacket

java.lang.Object
  extended by net.sf.cindy.packet.DelegatePacket
All Implemented Interfaces:
Packet
Direct Known Subclasses:
PriorityPacket

public class DelegatePacket
extends java.lang.Object
implements Packet

Delegate packet.

Version:
$id$
Author:
Roger Chen

Constructor Summary
DelegatePacket(Packet packet)
           
 
Method Summary
 java.net.SocketAddress getAddress()
          Get the socket address of the packet.
 Buffer getContent()
          Get the content of the packet.
 Packet getDelegate()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegatePacket

public DelegatePacket(Packet packet)
Method Detail

getDelegate

public Packet getDelegate()

getAddress

public java.net.SocketAddress getAddress()
Description copied from interface: Packet
Get the socket address of the packet.

Specified by:
getAddress in interface Packet
Returns:
the socket address

getContent

public Buffer getContent()
Description copied from interface: Packet
Get the content of the packet.

Specified by:
getContent in interface Packet
Returns:
content

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object