com.cyclonecommerce.cybervan.api
Interface InterchangeServer

All Superinterfaces:
java.rmi.Remote, RemoteInterchangeServer

public interface InterchangeServer
extends RemoteInterchangeServer

Interface implemented by the Interchange Server. This interface should be used by a Client wishing to register a EventListener or DocumentListener. Once registered Interchange will call the registered client(s).


Method Summary
 void setDocumentListener(DocumentListener listener)
          Sets the EventListener to be notified when an inbound document has arrived.
 void setEventListener(InterchangeEventListener listener)
          Sets the EventListener to be notified when an event of any level has occured.
 
Methods inherited from interface com.cyclonecommerce.cybervan.api.RemoteInterchangeServer
isRunning, removeDocumentListener, removeEventListener, sendDocument, sendDocument, sendDocument, setDocumentListener
 

Method Detail

setDocumentListener

public void setDocumentListener(DocumentListener listener)
                         throws java.rmi.RemoteException
Sets the EventListener to be notified when an inbound document has arrived. Used to register a DocumentListener with the Interchange Server.
Parameters:
listener - The EventListener
Throws:
java.rmi.RemoteException -  

setEventListener

public void setEventListener(InterchangeEventListener listener)
                      throws java.rmi.RemoteException
Sets the EventListener to be notified when an event of any level has occured. Used to register an EventListener with the InterchangeServer.
Specified by:
setEventListener in interface RemoteInterchangeServer
Parameters:
listener - The EventListener
Throws:
java.rmi.RemoteException -