Openwings API Documentation (v1.1)

net.openwings.connector.synchronous
Interface ProviderProxy

All Superinterfaces:
ConnectionListener, ReceiverProxy, java.io.Serializable

public interface ProviderProxy
extends ReceiverProxy, ConnectionListener

This class contains the methods that are to be implemented by a service's provider proxy. These methods provide a standard interface for initializing, connecting, disconnecting, event handling, and communicating through an arbitrary transport protocol with a UserProxy. This interface also provides a standardization that can be used by generators for specific protocols to generate a provider proxy for a given interface.


Method Summary
 void addConnectionListener(ConnectionListener connectionListener)
          This method establishes a callback for a ConnectionListener.
 
Methods inherited from interface net.openwings.connector.ReceiverProxy
connect, disconnect, setServiceImpl
 
Methods inherited from interface net.openwings.connector.synchronous.ConnectionListener
userConnected, userDisconnected
 

Method Detail

addConnectionListener

public void addConnectionListener(ConnectionListener connectionListener)
                           throws java.rmi.RemoteException
This method establishes a callback for a ConnectionListener. This is to handle notification of connections and disconnections to this ReceiverProxy.

Parameters:
connectionListener - the callback object for connection events.
Throws:
java.rmi.RemoteException - if an exception occurs. This should never happen.

Openwings API Documentation (v1.1)