gov.lanl.Utility
Class CorbaHelper

java.lang.Object
  |
  +--gov.lanl.Utility.CorbaHelper

public final class CorbaHelper
extends java.lang.Object

The class CorbaHelper contains useful methods for obtaining references to distributed PIDS and Trader objects. Note split from PidsTraderCorbaHelper.java - tew - 4 Aug 99

 

Constructor Summary
CorbaHelper()
           
 
Method Summary
static org.omg.CORBA.Object checkObject(org.omg.CORBA.Object obj)
          enable the client to talk to an insecure object
static org.omg.CORBA.ORB doFindOrb(java.lang.String[] argv)
          locates the orb and displays status
static org.omg.CORBA.Object getIORFromFileOrUrl(java.lang.String iorFileOrUrl)
          loads a CORBA ior from a file or URL
static org.omg.CosTrading.Lookup getLookupIFFromIOR(java.lang.String traderIORFileOrUrl)
          resolves a Trader IOR file or URL to a Trader Lookup interface
static org.omg.CORBA.ORB getOrb()
          return ORB or get it from the ServiceFactory
static gov.lanl.SSLTools.ServiceInterface getServiceInterface()
          get the ServiceInterface if it is defined
static void setOrb(org.omg.CORBA.ORB orb)
          set the orb to an external value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorbaHelper

public CorbaHelper()
Method Detail

doFindOrb

public static org.omg.CORBA.ORB doFindOrb(java.lang.String[] argv)
locates the orb and displays status

Returns:
a reference to an ORB or null if no ORB found

getServiceInterface

public static gov.lanl.SSLTools.ServiceInterface getServiceInterface()
get the ServiceInterface if it is defined


getOrb

public static org.omg.CORBA.ORB getOrb()
return ORB or get it from the ServiceFactory


setOrb

public static void setOrb(org.omg.CORBA.ORB orb)
set the orb to an external value


getIORFromFileOrUrl

public static org.omg.CORBA.Object getIORFromFileOrUrl(java.lang.String iorFileOrUrl)
loads a CORBA ior from a file or URL

Parameters:
iorFileOrUrl - the name of a file containing a IOR
Returns:
a reference to the CORBA object or null if IOR couldn't be resolved

getLookupIFFromIOR

public static org.omg.CosTrading.Lookup getLookupIFFromIOR(java.lang.String traderIORFileOrUrl)
resolves a Trader IOR file or URL to a Trader Lookup interface

Parameters:
traderIORFileOrUrl - the name of a file containing a Trader IOR
Returns:
a Lookup object reference or null if a Trader IOR couldn't be resolved

checkObject

public static org.omg.CORBA.Object checkObject(org.omg.CORBA.Object obj)
enable the client to talk to an insecure object

Parameters:
obj -
Returns: