use of com.sun.corba.se.spi.ior.iiop.AlternateIIOPAddressComponent in project wildfly by wildfly.
the class CSIV2IORToSocketInfo method addAlternateSocketInfos.
private void addAlternateSocketInfos(IIOPProfileTemplate iiopProfileTemplate, final List result) {
Iterator iterator = iiopProfileTemplate.iteratorById(TAG_ALTERNATE_IIOP_ADDRESS.value);
while (iterator.hasNext()) {
AlternateIIOPAddressComponent alternate = (AlternateIIOPAddressComponent) iterator.next();
String hostname = alternate.getAddress().getHost().toLowerCase();
int port = alternate.getAddress().getPort();
SocketInfo socketInfo = createSocketInfo(hostname, port);
result.add(socketInfo);
}
}
Aggregations