KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > ior > iiop > IIOPAddressClosureImpl


1 /*
2  * @(#)IIOPAddressClosureImpl.java 1.6 04/06/21
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.ior.iiop;
9
10 import org.omg.CORBA.BAD_PARAM JavaDoc ;
11
12 import org.omg.CORBA_2_3.portable.InputStream JavaDoc ;
13 import org.omg.CORBA_2_3.portable.OutputStream JavaDoc ;
14
15 import com.sun.corba.se.spi.orbutil.closure.Closure ;
16
17 /**
18  * @author
19  */

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 JavaDoc getHost()
32     {
33     return (String JavaDoc)(host.evaluate()) ;
34     }
35
36     public int getPort()
37     {
38     Integer JavaDoc value = (Integer JavaDoc)(port.evaluate()) ;
39     return value.intValue() ;
40     }
41 }
42
Popular Tags