Package org.glassfish.jndi.cosnaming
Class IiopUrl
- java.lang.Object
-
- org.glassfish.jndi.cosnaming.IiopUrl
-
public final class IiopUrl extends java.lang.Object
Extract components of an "iiop" or "iiopname" URL. The format of an iiopname URL is defined in INS 98-10-11 as follows:iiopname url = "iiopname://" [addr_list]["/" string_name] addr_list = [address ","]* address address = [version host [":" port]] host = DNS style host name | IP address version = major "." minor "@" | empty_string port = number major = number minor = number string_name = stringified name | empty_string
The default port is 9999. The default version is "1.0" US-ASCII alphanumeric characters are not escaped. Any characters outside of this range are escaped except for the following:
Escaped characters is escaped by using a % followed by its 2 hexadecimal numbers representing the octet. For backward compatibility, the "iiop" URL as defined in INS 97-6-6 is also supported:; / : ? : @ & = + $ , - _ . ! ~ * ' ( )
The default port is 900.iiop url = "iiop://" [host [":" port]] ["/" string_name]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IiopUrl.Address
-
Field Summary
Fields Modifier and Type Field Description private java.util.Vector<IiopUrl.Address>
addresses
private static java.lang.String
DEFAULT_HOST
private static int
DEFAULT_IIOP_PORT
private static int
DEFAULT_IIOPNAME_PORT
private java.lang.String
stringName
-
Constructor Summary
Constructors Constructor Description IiopUrl(java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector<IiopUrl.Address>
getAddresses()
javax.naming.Name
getCosName()
java.lang.String
getStringName()
Returns a possibly empty but non-null string that is the "string_name" portion of the URL.
-
-
-
Field Detail
-
DEFAULT_IIOPNAME_PORT
private static final int DEFAULT_IIOPNAME_PORT
- See Also:
- Constant Field Values
-
DEFAULT_IIOP_PORT
private static final int DEFAULT_IIOP_PORT
- See Also:
- Constant Field Values
-
DEFAULT_HOST
private static final java.lang.String DEFAULT_HOST
- See Also:
- Constant Field Values
-
addresses
private java.util.Vector<IiopUrl.Address> addresses
-
stringName
private java.lang.String stringName
-
-
Method Detail
-
getAddresses
public java.util.Vector<IiopUrl.Address> getAddresses()
-
getStringName
public java.lang.String getStringName()
Returns a possibly empty but non-null string that is the "string_name" portion of the URL.
-
getCosName
public javax.naming.Name getCosName() throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
-
-