Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

To implement a Protocol Handler an AbstractProtocolHandler has to be extended. A few method has to be implemented here. First of all the method getName has to be implemented that returns the unique name of the Protocol Handler. After that, the method createInstance need to be implemented to create a new instance of the Protocol Handler with the given options. By the fact, that a Protocol Handler can be used in a pull  and a push fashion, the methods hasNext and getNext for pull access and process for push access have both to be implemented to read data using the data handler and forward the data to the transfer. In addition, the method write has to be implemented to write data. Further, the methods open and close to open and close the Transport Handler and initialize or shutdown the the source/sink should be implemented. Other methods like the onConnect and onDisconnectcan can be implemented to treat events in the transport channel adequately. Depending on the applications ones want to override the methods getExchangePattern to define the supported exchange pattern for the transport direction (int or out) and access (push or pull).

...