1. /*
  2. * @(#)IIOPAddressFutureImpl.java 1.3 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. //Source file: J:/ws/serveractivation/src/share/classes/com.sun.corba.se.internal.ior/IIOPAddress.java
  8. package com.sun.corba.se.internal.ior;
  9. import org.omg.CORBA.BAD_PARAM ;
  10. import org.omg.CORBA_2_3.portable.InputStream ;
  11. import org.omg.CORBA_2_3.portable.OutputStream ;
  12. import com.sun.corba.se.internal.core.Future ;
  13. /**
  14. * @author
  15. */
  16. public final class IIOPAddressFutureImpl extends IIOPAddressBase
  17. {
  18. private Future host;
  19. private Future port;
  20. public IIOPAddressFutureImpl( Future host, Future port )
  21. {
  22. this.host = host ;
  23. this.port = port ;
  24. }
  25. public String getHost()
  26. {
  27. return (String)(host.evaluate()) ;
  28. }
  29. public int getPort()
  30. {
  31. Integer value = (Integer)(port.evaluate()) ;
  32. return value.intValue() ;
  33. }
  34. }