KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > naming > namingutil > INSURLBase


1 /*
2  * @(#)INSURLBase.java 1.5 03/12/19
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.naming.namingutil;
9
10 /** The corbaloc: URL definitions from the -ORBInitDef and -ORBDefaultInitDef's
11  * will be stored in this object. This object is capable of storing multiple
12  * Host profiles as defined in the CorbaLoc grammer.
13  *
14  * @author Hemanth
15  */

16 public abstract class INSURLBase implements INSURL {
17
18     // If rirFlag is set to true that means internal
19
// boot strapping technique will be used. If set to
20
// false then the EndpointInfo will be used to create the
21
// Service Object reference.
22
protected boolean rirFlag = false ;
23     protected java.util.ArrayList JavaDoc theEndpointInfo = null ;
24     protected String JavaDoc theKeyString = "NameService" ;
25     protected String JavaDoc theStringifiedName = null ;
26
27     public boolean getRIRFlag( ) {
28         return rirFlag;
29     }
30
31     public java.util.List JavaDoc getEndpointInfo( ) {
32         return theEndpointInfo;
33     }
34
35     public String JavaDoc getKeyString( ) {
36         return theKeyString;
37     }
38
39     public String JavaDoc getStringifiedName( ) {
40         return theStringifiedName;
41     }
42
43     public abstract boolean isCorbanameURL( );
44
45     public void dPrint( ) {
46         System.out.println( "URL Dump..." );
47         System.out.println( "Key String = " + getKeyString( ) );
48         System.out.println( "RIR Flag = " + getRIRFlag( ) );
49         System.out.println( "isCorbanameURL = " + isCorbanameURL() );
50         for( int i = 0; i < theEndpointInfo.size( ); i++ ) {
51             ((IIOPEndpointInfo) theEndpointInfo.get( i )).dump( );
52         }
53         if( isCorbanameURL( ) ) {
54             System.out.println( "Stringified Name = " + getStringifiedName() );
55         }
56     }
57     
58 }
59
60
Popular Tags