Package org.jacorb.orb.util

Examples of org.jacorb.orb.util.CorbaLoc


        }
    }

    private void parse_corbaloc(String object_reference)
    {
        CorbaLoc corbaLoc = new CorbaLoc(orb, object_reference);
        IOR ior = null;
        if (corbaLoc.rir())
        {
            try
            {
                org.omg.CORBA.Object obj =
                    orb.resolve_initial_references(corbaLoc.getKeyString());

                if (obj == null)
                {
                    throw new IllegalArgumentException(
                        "Unable to resolve reference for "
                            + corbaLoc.getKeyString());
                }

                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()).getIOR();
            }
            catch (Exception e)
            {
                if (logger.isErrorEnabled())
                {
                    logger.error(e.getMessage());
                }
                throw new IllegalArgumentException("Invalid corbaloc: URL");
            }
        }
        else
    {
      if (corbaLoc.profileList.length == 0) {
        // no profiles found; no point continuing
        return;
      }
      for (int count = 0; count < corbaLoc.profileList.length; count++) {
        corbaLoc.profileList[count].set_object_key(corbaLoc.getKey());
      }
      ior = createObjectIOR(corbaLoc.profileList);
    }

  decode(ior);
View Full Code Here


        }
    }

    private void parse_corbaloc(String object_reference)
    {
        CorbaLoc corbaLoc = new CorbaLoc(orb, object_reference);
        IOR ior = null;
        if (corbaLoc.rir())
        {
            try
            {
                org.omg.CORBA.Object obj =
                    orb.resolve_initial_references(corbaLoc.getKeyString());

                if (obj == null)
                {
                    throw new IllegalArgumentException(
                        "Unable to resolve reference for "
                            + corbaLoc.getKeyString());
                }

                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()).getIOR();
            }
            catch (Exception e)
            {
                if (logger.isErrorEnabled())
                    logger.error(e.getMessage());
                throw new IllegalArgumentException("Invalid corbaloc: URL");
            }
        }
        else
        {
            Profile profile = corbaLoc.profileList[0];
            if (profile == null)
                return; // could not decode any address in list

            profile.set_object_key(corbaLoc.getKey());
            ior = createObjectIOR(profile);
        }

        decode(ior);
    }
View Full Code Here

        }
    }

    private void parse_corbaloc(String object_reference)
    {
        CorbaLoc corbaLoc = new CorbaLoc(orb, object_reference);
        IOR ior = null;
        if (corbaLoc.rir())
        {
            try
            {
                org.omg.CORBA.Object obj =
                    orb.resolve_initial_references(corbaLoc.getKeyString());

                if (obj == null)
                {
                    throw new IllegalArgumentException(
                        "Unable to resolve reference for "
                            + corbaLoc.getKeyString());
                }

                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()).getIOR();
            }
            catch (Exception e)
            {
                if (logger.isErrorEnabled())
                {
                    logger.error(e.getMessage());
                }
                throw new IllegalArgumentException("Invalid corbaloc: URL");
            }
        }
        else
    {
      if (corbaLoc.profileList.length == 0) {
        // no profiles found; no point continuing
        return;
      }
      for (int count = 0; count < corbaLoc.profileList.length; count++) {
        corbaLoc.profileList[count].set_object_key(corbaLoc.getKey());
      }
      ior = createObjectIOR(corbaLoc.profileList);
    }

  decode(ior);
View Full Code Here

        }
    }

    private void parse_corbaloc(String object_reference)
    {
        CorbaLoc corbaLoc = new CorbaLoc(orb, object_reference);
        IOR ior = null;
        if (corbaLoc.rir())
        {
            try
            {
                org.omg.CORBA.Object obj =
                    orb.resolve_initial_references(corbaLoc.getKeyString());

                if (obj == null)
                {
                    throw new IllegalArgumentException(
                        "Unable to resolve reference for "
                            + corbaLoc.getKeyString());
                }

                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()).getIOR();
            }
            catch (Exception e)
            {
                if (logger.isErrorEnabled())
                {
                    logger.error(e.getMessage());
                }
                throw new IllegalArgumentException("Invalid corbaloc: URL");
            }
        }
        else
    {
      if (corbaLoc.profileList.length == 0) {
        // no profiles found; no point continuing
        return;
      }
      for (int count = 0; count < corbaLoc.profileList.length; count++) {
        corbaLoc.profileList[count].set_object_key(corbaLoc.getKey());
      }
      ior = createObjectIOR(corbaLoc.profileList);
    }

  decode(ior);
View Full Code Here

        }
    }

    private void parse_corbaloc(String object_reference)
    {
        CorbaLoc corbaLoc = new CorbaLoc(orb, object_reference);
        IOR ior = null;
        if (corbaLoc.rir())
        {
            try
            {
                org.omg.CORBA.Object obj =
                    orb.resolve_initial_references(corbaLoc.getKeyString());

                if (obj == null)
                {
                    throw new IllegalArgumentException(
                        "Unable to resolve reference for "
                            + corbaLoc.getKeyString());
                }

                ior =
                    ((Delegate) ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate()).getIOR();
            }
            catch (Exception e)
            {
                logger.error(("Invalid corbaloc URL " + corbaLoc.getKeyString ()), e);
                throw new IllegalArgumentException("Invalid corbaloc: URL");
            }
        }
        else
        {
            if (corbaLoc.profileList.length == 0)
            {
                // no profiles found; no point continuing
                return;
            }
            for (int count = 0; count < corbaLoc.profileList.length; count++)
            {
                corbaLoc.profileList[count].set_object_key(corbaLoc.getKey());
            }
            ior = createObjectIOR(orb, corbaLoc.profileList);
        }

    decode(ior);
View Full Code Here

TOP

Related Classes of org.jacorb.orb.util.CorbaLoc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.