Class 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 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.