Java™ Platform
Standard Ed. 8
org.omg.CosNaming

Interface NamingContextExtOperations

    • Method Detail

      • to_string

        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

        Throws:
        org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

        InvalidName
      • to_name

        NameComponent[] to_name(String sn)
                         throws InvalidName
        This operation converts a Stringified Name into an equivalent array of Name Components.
        Parameters:
        sn - Stringified Name of the object

        Throws:
        org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

        InvalidName
      • to_url

        String to_url(String addr,
                      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

        Throws:
        org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

        org.omg.CosNaming.NamingContextPackage.InvalidAddress - Indicates the internet based address of the host machine is incorrect

        InvalidAddress
        InvalidName
      • resolve_str

        Object resolve_str(String sn)
                    throws NotFound,
                           CannotProceed,
                           InvalidName
        This operation resolves the Stringified name into the object reference.
        Parameters:
        sn - Stringified Name of the object

        Throws:
        NotFound - Indicates there is no object reference for the given name.

        CannotProceed - Indicates that the given compound name is incorrect

        org.omg.CosNaming.NamingContextExtPackage.InvalidName - Indicates the name does not identify a binding.

        InvalidName
Java™ Platform
Standard Ed. 8

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部