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
public class CorbalocURL extends INSURLBase
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
Constructors Constructor Description CorbalocURL(java.lang.String aURL)
This constructor parses the URL and initializes all the variables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
getIPV6Host(java.lang.String endpointInfo)
Returns an IPV6 Host that is inside [ ] tokens.private java.lang.String
getIPV6Port(java.lang.String endpointInfo)
Returns an IPV6 Port that is after []:. private IIOPEndpointInfo
handleColon(java.lang.String iiopInfo)
This is to handle the case of host information with no 'iiop:' prefix.private IIOPEndpointInfo
handleIIOPColon(java.lang.String iiopInfo)
If there is 'iiop:' token in the URL, this method will parses and validates that host and port information.private void
handleRIRColon(java.lang.String rirInfo)
Validate 'rir:' case.boolean
isCorbanameURL()
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 Detail
-
CorbalocURL
public CorbalocURL(java.lang.String aURL)
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 Detail
-
handleIIOPColon
private IIOPEndpointInfo handleIIOPColon(java.lang.String iiopInfo)
If there is 'iiop:' token in the URL, this method will parses and validates that host and port information.
-
handleColon
private IIOPEndpointInfo handleColon(java.lang.String iiopInfo)
This is to handle the case of host information with no 'iiop:' prefix. instead if ':' is specified then iiop is assumed.
-
handleRIRColon
private void handleRIRColon(java.lang.String rirInfo)
Validate 'rir:' case.
-
getIPV6Port
private java.lang.String getIPV6Port(java.lang.String endpointInfo)
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
private java.lang.String getIPV6Host(java.lang.String endpointInfo)
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
-
-