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.
  • Constructor Details

    • CorbalocURL

      public CorbalocURL(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 Details

    • handleIIOPColon

      private IIOPEndpointInfo handleIIOPColon(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(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(String rirInfo)
      Validate 'rir:' case.
    • getIPV6Port

      private String getIPV6Port(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 String getIPV6Host(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 interface INSURL
      Specified by:
      isCorbanameURL in class INSURLBase