net.kano.joscar.rvproto.rvproxy
Class DefaultRvProxyCmdFactory

java.lang.Object
  extended byDefaultRvProxyCmdFactory
All Implemented Interfaces:
RvProxyCmdFactory

public class DefaultRvProxyCmdFactory
extends java.lang.Object
implements RvProxyCmdFactory

Provides an implementation of an AOL Proxy command factory that generates instances of the five RV Proxy command classes provided in this package.


Constructor Summary
DefaultRvProxyCmdFactory()
           
 
Method Summary
 RvProxyCmd getRvProxyCmd(RvProxyPacket header)
          Attempts to create an appropriate RvCommand that represents the given RvProxyPacket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRvProxyCmdFactory

public DefaultRvProxyCmdFactory()
Method Detail

getRvProxyCmd

public RvProxyCmd getRvProxyCmd(RvProxyPacket header)
Description copied from interface: RvProxyCmdFactory
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.

Specified by:
getRvProxyCmd in interface RvProxyCmdFactory
Parameters:
header - an incoming RV proxy packet
Returns:
an RvCommand that corresponds to the given RvProxyPacket, or null if no appropriate command object could be created