Class CorbalocURL
java.lang.Object
com.sun.corba.ee.impl.naming.namingutil.INSURLBase
com.sun.corba.ee.impl.naming.namingutil.CorbalocURL
- All Implemented Interfaces:
INSURL
The corbaloc: URL definitions from the -ORBInitDef and -ORBDefaultInitDef's
will be parsed and converted to this object. This object is capable of
storing multiple Host profiles as defined in the CorbaLoc grammer.
-
Field Summary
Fields inherited from class com.sun.corba.ee.impl.naming.namingutil.INSURLBase
rirFlag, theEndpointInfo, theKeyString, theStringifiedName
-
Constructor Summary
ConstructorsConstructorDescriptionCorbalocURL
(String aURL) This constructor parses the URL and initializes all the variables. -
Method Summary
Modifier and TypeMethodDescriptionprivate String
getIPV6Host
(String endpointInfo) Returns an IPV6 Host that is inside [ ] tokens.private String
getIPV6Port
(String endpointInfo) Returns an IPV6 Port that is after []:. private IIOPEndpointInfo
handleColon
(String iiopInfo) This is to handle the case of host information with no 'iiop:' prefix.private IIOPEndpointInfo
handleIIOPColon
(String iiopInfo) If there is 'iiop:' token in the URL, this method will parses and validates that host and port information.private void
handleRIRColon
(String rirInfo) Validate 'rir:' case.boolean
Will be true only in CorbanameURL class.Methods inherited from class com.sun.corba.ee.impl.naming.namingutil.INSURLBase
badAddress, badAddress, dPrint, getEndpointInfo, getKeyString, getRIRFlag, getStringifiedName
-
Constructor Details
-
CorbalocURL
This constructor parses the URL and initializes all the variables. Once the URL Object is constructed it is immutable. URL parameter is a corbaloc: URL string with 'corbaloc:' prefix stripped.- Parameters:
aURL
- corbaloc URL as a String
-
-
Method Details
-
handleIIOPColon
If there is 'iiop:' token in the URL, this method will parses and validates that host and port information. -
handleColon
This is to handle the case of host information with no 'iiop:' prefix. instead if ':' is specified then iiop is assumed. -
handleRIRColon
Validate 'rir:' case. -
getIPV6Port
Returns an IPV6 Port that is after []:. There is no validation done here, if it is an incorrect port then the request through this URL results in a COMM_FAILURE, otherwise malformed list will result in BAD_PARAM exception thrown in checkcorbalocGrammer. -
getIPV6Host
Returns an IPV6 Host that is inside [ ] tokens. There is no validation done here, if it is an incorrect IPV6 address then the request through this URL results in a COMM_FAILURE, otherwise malformed list will result in BAD_PARAM exception thrown in checkcorbalocGrammer. -
isCorbanameURL
public boolean isCorbanameURL()Will be true only in CorbanameURL class.- Specified by:
isCorbanameURL
in interfaceINSURL
- Specified by:
isCorbanameURL
in classINSURLBase
-