System.out.println("TAG_INTERNET_IOP Profiles:");
for( int i = 0; i < profiles.size(); i++ )
{
System.out.print("\tProfile Id: ");
IIOPProfile p = (IIOPProfile)profiles.get(i);
System.out.println("\tIIOP Version : " +
(int)p.version().major + "." +
(int)p.version().minor);
System.out.println("\tHost\t:\t" +
((IIOPAddress)p.getAddress()).getOriginalHost());
int port = ((IIOPAddress)p.getAddress()).getPort();
if( port < 0 )
port += 65536;
System.out.println("\tPort\t:\t" + port );
try
{
System.out.println("\tObject key (URL): " +
CorbaLoc.parseKey( pior.get_object_key()));
}
catch( Exception e )
{
// ignore, object key not in url format
}
System.out.print("\tObject key (hex): 0x" );
dumpHex( pior.get_object_key() );
System.out.println();
if ( p.version().minor >= ( char ) 1 )
{
if( p.getComponents().size() > 0 )
System.out.println("\t-- Found " +
p.getComponents().size() +
" Tagged Components--" );
printTaggedComponents( p.getComponents().asArray() );
}
System.out.print("\n");
}
TaggedComponentList multiple_components = pior.getMultipleComponents();