com.retrogui.dualrpc.client
Class AbstractClientRpcHandler

java.lang.Object
  extended bycom.retrogui.dualrpc.client.AbstractClientRpcHandler
All Implemented Interfaces:
IRpcHandler

public abstract class AbstractClientRpcHandler
extends java.lang.Object
implements IRpcHandler

Abstract class that provides base rpc handler methods such as ping(), etc. Note: I thought about having a constructor that required a DualRpcClient to be passed in for easy access to call methods. This is similar to AbstractServerRpcHandler's constructor where a dispatcher with call methods is passed in. In typical usage a client handler method won't need to call the server (since it is the server calling in the first place). With no constructor defined in the abstract class the developer can create client handler classes and pass to the constructor any objects that are needed, including the DualRpcClient.


Constructor Summary
AbstractClientRpcHandler()
           
 
Method Summary
 java.lang.String ping(java.lang.String s)
          Echo (return) the same string as passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractClientRpcHandler

public AbstractClientRpcHandler()
Method Detail

ping

public java.lang.String ping(java.lang.String s)
Echo (return) the same string as passed in.

Parameters:
s - - a string
Returns:
- a string