16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.corba.se.impl.naming.namingutil;
27
28 import com.sun.corba.se.impl.logging.NamingSystemException;
29 import com.sun.corba.se.spi.logging.CORBALogDomains;
30
31 /**
32 * The corbaname: URL definitions from the -ORBInitDef and -ORBDefaultInitDef's
33 * will be stored in this object. This object is capable of storing CorbaLoc
34 * profiles as defined in the CorbaName grammer.
35 *
36 * @Author Hemanth
37 */
38 public class CorbanameURL extends INSURLBase
39 {
40 private static NamingSystemException wrapper =
41 NamingSystemException.get( CORBALogDomains.NAMING ) ;
42
43 /**
44 * This constructor takes a corbaname: url with 'corbaname:' prefix stripped
45 * and initializes all the variables accordingly. If there are any parsing
46 * errors then BAD_PARAM exception is raised.
47 */
48 public CorbanameURL( String aURL ) {
49 String url = aURL;
50
51 // First Clean the URL Escapes if there are any
52 try {
53 url = Utility.cleanEscapes( url );
54 } catch( Exception e ) {
55 badAddress( e );
56 }
|
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.corba.se.impl.naming.namingutil;
27
28 import com.sun.corba.se.impl.logging.NamingSystemException;
29 import com.sun.corba.se.spi.logging.CORBALogDomains;
30
31 /**
32 * The corbaname: URL definitions from the -ORBInitDef and -ORBDefaultInitDef's
33 * will be stored in this object. This object is capable of storing CorbaLoc
34 * profiles as defined in the CorbaName grammer.
35 *
36 * @author Hemanth
37 */
38 public class CorbanameURL extends INSURLBase
39 {
40 private static NamingSystemException wrapper =
41 NamingSystemException.get( CORBALogDomains.NAMING ) ;
42
43 /**
44 * This constructor takes a corbaname: url with 'corbaname:' prefix stripped
45 * and initializes all the variables accordingly. If there are any parsing
46 * errors then BAD_PARAM exception is raised.
47 */
48 public CorbanameURL( String aURL ) {
49 String url = aURL;
50
51 // First Clean the URL Escapes if there are any
52 try {
53 url = Utility.cleanEscapes( url );
54 } catch( Exception e ) {
55 badAddress( e );
56 }
|