net.kano.joscar.rvproto.rvproxy
Interface RvProxyCmdFactory

All Known Implementing Classes:
DefaultRvProxyCmdFactory

public interface RvProxyCmdFactory

An interface for generating instances of RvCommand from incoming RvProxyPackets.


Method Summary
 RvProxyCmd getRvProxyCmd(RvProxyPacket packet)
          Attempts to create an appropriate RvCommand that represents the given RvProxyPacket.
 

Method Detail

getRvProxyCmd

public RvProxyCmd getRvProxyCmd(RvProxyPacket packet)
Attempts to create an appropriate RvCommand that represents the given RvProxyPacket. Note that this method can surely return null if no appropriate command object can be created.

Parameters:
packet - an incoming RV proxy packet
Returns:
an RvCommand that corresponds to the given RvProxyPacket, or null if no appropriate command object could be created