- /*
- * @(#)IIOPAddressClosureImpl.java 1.6 04/06/21
- *
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package com.sun.corba.se.impl.ior.iiop;
-
- import org.omg.CORBA.BAD_PARAM ;
-
- import org.omg.CORBA_2_3.portable.InputStream ;
- import org.omg.CORBA_2_3.portable.OutputStream ;
-
- import com.sun.corba.se.spi.orbutil.closure.Closure ;
-
- /**
- * @author
- */
- public final class IIOPAddressClosureImpl extends IIOPAddressBase
- {
- private Closure host;
- private Closure port;
-
- public IIOPAddressClosureImpl( Closure host, Closure port )
- {
- this.host = host ;
- this.port = port ;
- }
-
- public String getHost()
- {
- return (String)(host.evaluate()) ;
- }
-
- public int getPort()
- {
- Integer value = (Integer)(port.evaluate()) ;
- return value.intValue() ;
- }
- }