Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public class TestModule

Listener implements RemoteDataTransferListener {

protected final Log log = LogFactory.getLog(getClass());

  @Override
  public void dataReceived(RemoteDataTransferReceivedItem receivedItem) { 
    //PERFORM ACTIONS HERE 
  }

  @Override
  public List<String> getSupportedTags() {
    String\[\] list = {"kdmtestmodule1","kdmtestmodule2"};
    return Arrays.asList(list);
  }
}

dataReceived – This method is executed when data is received that has been taggeed with any of the tags in getSupportedTags. The appropriate RemoteDataTransferReceivedItem is made available via a parameter. Some of the most useful properties of this object are listed:

...