ie.deri.wsmx.mediation
Class DummyMediator

java.lang.Object
  extended byie.deri.wsmx.mediation.DummyMediator
All Implemented Interfaces:
Mediator

public class DummyMediator
extends java.lang.Object
implements Mediator

A dummy mediator that does nothing more that adding in the end of the given payload the string: "__ADDED_BY_DUMMYMEDIATOR".


Constructor Summary
(package private) DummyMediator()
           
 
Method Summary
 java.lang.StringBuffer mediate(java.lang.String sourceOntologyID, java.lang.String targetOntologyId, java.lang.StringBuffer payload)
          Calls the mediator and returns back the mediated payload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyMediator

DummyMediator()
Method Detail

mediate

public java.lang.StringBuffer mediate(java.lang.String sourceOntologyID,
                                      java.lang.String targetOntologyId,
                                      java.lang.StringBuffer payload)
Description copied from interface: Mediator
Calls the mediator and returns back the mediated payload

Specified by:
mediate in interface Mediator
Parameters:
sourceOntologyID - the source ontology ID
targetOntologyId - the target ontology ID
payload - the subject of the mediation (instances from the source ontology)
Returns:
the mediated payload (instances from the target ontology)