net.kano.joscar.flap
Interface FlapCommandFactory

All Known Implementing Classes:
DefaultFlapCmdFactory

public interface FlapCommandFactory

Provides an interface for deriving high-level FlapCommands from low-level FlapPackets.


Method Summary
 FlapCommand genFlapCommand(FlapPacket packet)
          Returns a FlapCommand representing the given packet, or null if there is no FlapCommand which can represent the given packet (that is, if the packet type or format is unrecognized by this factory).
 

Method Detail

genFlapCommand

public FlapCommand genFlapCommand(FlapPacket packet)
Returns a FlapCommand representing the given packet, or null if there is no FlapCommand which can represent the given packet (that is, if the packet type or format is unrecognized by this factory).

Parameters:
packet - the packet from which a FlapCommand should be created
Returns:
a FlapCommand to represent the given packet, or null if this factory has no FlapCommand counterpart for this packet type or format