{
List<ListenPoint> result = new ArrayList<ListenPoint>();
if (getSSL() == null)
{
result.add(new ListenPoint(primaryAddress.getHostname(), (short)primaryAddress.getPort()));
}
else
{
if (getSSLPort() == 0)
{
result.add(new ListenPoint(primaryAddress.getHostname(), (short)primaryAddress.getPort()));
}
else
{
result.add(new ListenPoint(primaryAddress.getHostname(), (short)getSSLPort()));
}
}
Iterator<IIOPAddress> it = getAlternateAddresses().iterator();
while(it.hasNext())
{
IIOPAddress addr = it.next();
result.add(new ListenPoint(addr.getHostname(), (short)addr.getPort()));
}
return result;
}