Class InterOperableNamingImpl

java.lang.Object
com.sun.corba.se.impl.naming.cosnaming.InterOperableNamingImpl

public class InterOperableNamingImpl extends Object
Class InteroperableNamingImpl implements the methods defined for NamingContextExt which is part of Interoperable Naming Service specifications. This class is added for doing more of Parsing and Building of Stringified names according to INS Spec.
  • Constructor Details

    • InterOperableNamingImpl

      public InterOperableNamingImpl()
  • Method Details

    • convertToString

      public String convertToString(NameComponent[] theNameComponents)
      Method which stringifies the Name Components given as the input parameter.
      Parameters:
      n - Array of Name Components (Simple or Compound Names)
      Returns:
      string which is the stringified reference.
    • convertToNameComponent

      public NameComponent[] convertToNameComponent(String theStringifiedName) throws InvalidName
      Method which converts the Stringified name into Array of Name Components.
      Parameters:
      string - which is the stringified name.
      Returns:
      Array of Name Components (Simple or Compound Names)
      Throws:
      InvalidName
    • createURLBasedAddress

      public String createURLBasedAddress(String address, String name) throws InvalidAddress
      Method which converts the Stringified name and Host Name Address into a URL based Name
      Parameters:
      address - which is ip based host name
      name - which is the stringified name.
      Returns:
      url based Name.
      Throws:
      InvalidAddress