net.kano.joscar.flap
Class FlapPacketEvent

java.lang.Object
  extended byFlapPacketEvent
Direct Known Subclasses:
SnacPacketEvent

public class FlapPacketEvent
extends java.lang.Object

An event fired when a FLAP packet is received on a FLAP connection.


Constructor Summary
protected FlapPacketEvent(FlapPacketEvent other)
          Creates a new FLAP packet event object, a copy of the given event object.
protected FlapPacketEvent(FlapProcessor conn, FlapPacket packet, FlapCommand command)
          Creates a new FLAP packet event representing the receival of the given packet by the given FLAP processor, along with the given FLAP command generated from that packet.
 
Method Summary
 FlapCommand getFlapCommand()
          The FLAP command generated from the received FLAP packet.
 FlapPacket getFlapPacket()
          The FLAP packet that was received.
 FlapProcessor getFlapProcessor()
          The FLAP connection that received a packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlapPacketEvent

protected FlapPacketEvent(FlapPacketEvent other)
Creates a new FLAP packet event object, a copy of the given event object.

Parameters:
other - the FLAP packet event to copy

FlapPacketEvent

protected FlapPacketEvent(FlapProcessor conn,
                          FlapPacket packet,
                          FlapCommand command)
Creates a new FLAP packet event representing the receival of the given packet by the given FLAP processor, along with the given FLAP command generated from that packet.

Parameters:
conn - the FLAP connection that received this packet
packet - the packet received
command - the FLAP command generated by this packet
Method Detail

getFlapProcessor

public final FlapProcessor getFlapProcessor()
The FLAP connection that received a packet.

Returns:
the FLAP connection that received the packet that caused this event

getFlapPacket

public final FlapPacket getFlapPacket()
The FLAP packet that was received.

Returns:
the received FLAP packet

getFlapCommand

public final FlapCommand getFlapCommand()
The FLAP command generated from the received FLAP packet.

Returns:
the FLAP command associated with this event