it = localForwardings.values().iterator();
xml += (" <ForwardingAutoStart value=\"" +
String.valueOf(forwardingAutoStart) + "\"/>\n");
while (it.hasNext()) {
ForwardingConfiguration config = (ForwardingConfiguration) it.next();
xml += (" <LocalPortForwarding Name=\"" + config.getName() +
"\" AddressToBind=\"" + config.getAddressToBind() +
"\" PortToBind=\"" + String.valueOf(config.getPortToBind()) +
"\" AddressToConnect=\"" + config.getHostToConnect() +
"\" PortToConnect=\"" + String.valueOf(config.getPortToConnect()) +
"\"/>\n");
}
it = remoteForwardings.values().iterator();
while (it.hasNext()) {
ForwardingConfiguration config = (ForwardingConfiguration) it.next();
xml += (" <RemotePortForwarding Name=\"" + config.getName() +
"\" AddressToBind=\"" + config.getAddressToBind() +
"\" PortToBind=\"" + String.valueOf(config.getPortToBind()) +
"\" AddressToConnect=\"" + config.getHostToConnect() +
"\" PortToConnect=\"" + String.valueOf(config.getPortToConnect()) +
"\"/>\n");
}
xml += "</SshToolsConnectionProfile>";