Interface NamingContextExtOperations

    • Method Detail

      • to_string

        java.lang.String to_string​(NameComponent[] n)
                            throws InvalidName
        This operation creates a stringified name from the array of Name components.
        Parameters:
        n - Name of the object
        Returns:
        the name as a String
        Throws:
        InvalidName - Indicates the name does not identify a binding.
      • to_name

        NameComponent[] to_name​(java.lang.String sn)
                         throws InvalidName
        This operation converts a Stringified Name into an equivalent array of Name Components.
        Parameters:
        sn - Stringified Name of the object
        Returns:
        the resulting NameComponent araray
        Throws:
        InvalidName - Indicates the name does not identify a binding.
      • to_url

        java.lang.String to_url​(java.lang.String addr,
                                java.lang.String sn)
                         throws InvalidAddress,
                                InvalidName
        This operation creates a URL based "iiopname://" format name from the Stringified Name of the object.
        Parameters:
        addr - internet based address of the host machine where Name Service is running

        sn - Stringified Name of the object
        Returns:
        the resulting URL
        Throws:
        InvalidName - Indicates the name does not identify a binding.
        InvalidAddress - Indicates the internet based address of the host machine is incorrect
      • resolve_str

        Object resolve_str​(java.lang.String sn)
                    throws NotFound,
                           CannotProceed,
                           InvalidName
        This operation resolves the Stringified name into the object reference.
        Parameters:
        sn - Stringified Name of the object
        Returns:
        the resulting Object
        Throws:
        NotFound - Indicates there is no object reference for the given name.
        CannotProceed - Indicates that the given compound name is incorrect
        InvalidName - Indicates the name does not identify a binding.