1 7 8 package com.sun.corba.se.impl.ior.iiop; 9 10 import org.omg.CORBA.BAD_PARAM ; 11 12 import org.omg.CORBA_2_3.portable.InputStream ; 13 import org.omg.CORBA_2_3.portable.OutputStream ; 14 15 import com.sun.corba.se.spi.orbutil.closure.Closure ; 16 17 20 public final class IIOPAddressClosureImpl extends IIOPAddressBase 21 { 22 private Closure host; 23 private Closure port; 24 25 public IIOPAddressClosureImpl( Closure host, Closure port ) 26 { 27 this.host = host ; 28 this.port = port ; 29 } 30 31 public String getHost() 32 { 33 return (String )(host.evaluate()) ; 34 } 35 36 public int getPort() 37 { 38 Integer value = (Integer )(port.evaluate()) ; 39 return value.intValue() ; 40 } 41 } 42 | Popular Tags |