Search in sources :

Example 1 with AlternateIIOPAddressComponent

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);
    }
}
Also used : Iterator(java.util.Iterator) IORToSocketInfo(com.sun.corba.se.spi.transport.IORToSocketInfo) SocketInfo(com.sun.corba.se.spi.transport.SocketInfo) AlternateIIOPAddressComponent(com.sun.corba.se.spi.ior.iiop.AlternateIIOPAddressComponent)

Aggregations

AlternateIIOPAddressComponent (com.sun.corba.se.spi.ior.iiop.AlternateIIOPAddressComponent)1 IORToSocketInfo (com.sun.corba.se.spi.transport.IORToSocketInfo)1 SocketInfo (com.sun.corba.se.spi.transport.SocketInfo)1 Iterator (java.util.Iterator)1