You can write a custom handler and associate it with an
endpoint, for example to support communication with an FTP server.
Procedure
- To write a custom handler, implement the RouterHandler interface.
- Specify the following method to return a list of properties
that the handler uses to send data to the endpoint:
The method returns a list of RouterPropsInfo objects.
The isCrypto attribute in the RouterPropsInfo object indicates whether
to encrypt the property value while storing data. For password properties,
the value of this attribute is True.
- Specify the following method to send data to the specified
endpoint:
sendData(Map metaData, byte[] data, Map destinationMap)
The method returns the following information:
- Metadata provides information about the external system and the
interface.
- Data is the XML data.
- DestinationMap specifies the endpoint.