gov.lanl.Pids
Class PidsTraderCorbaHelper

java.lang.Object
  |
  +--gov.lanl.Pids.PidsTraderCorbaHelper

public final class PidsTraderCorbaHelper
extends java.lang.Object

The class PidsTraderCorbaHelper contains useful methods for obtaining references to distributed PIDS and Trader objects.

Version:
$Revision: 1.5 $
Author:
Torsten Staab

Constructor Summary
PidsTraderCorbaHelper()
           
 
Method Summary
static org.omg.CORBA.Object getPidsIORFromTraderOrFile(org.omg.CORBA.ORB theORB, java.lang.String traderRefOrPidsIORFile)
          obtains the IOR of a PIDS either indirectly via a Trader reference or directly via the PIDS IOR file or URL
static org.omg.PersonIdService.IdentificationComponent validatePidsRef(org.omg.CORBA.ORB theORB, java.lang.String pidsIOROrTraderRef)
          obtains the IOR of a PIDS either indirectly via a Trader reference or directly via the PIDS IOR file or URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PidsTraderCorbaHelper

public PidsTraderCorbaHelper()
Method Detail

getPidsIORFromTraderOrFile

public static org.omg.CORBA.Object getPidsIORFromTraderOrFile(org.omg.CORBA.ORB theORB,
                                                              java.lang.String traderRefOrPidsIORFile)
obtains the IOR of a PIDS either indirectly via a Trader reference or directly via the PIDS IOR file or URL

Parameters:
theORB - a reference to a CORBA ORB object
traderRefOrPidsIORFile - a Trader-based PIDS reference (PIDS name + Trader IOR file/URL) or PIDS IOR file/URL Trader reference example: "gov.lanl.acl [http://hope.acl.lanl.gov/TeleMed/trader.ref]" PIDS IOR File/URLe xample: "http://hope.acl.lanl.gov/TeleMed/pids.ref"
Returns:
the IOR of the specified PIDS or null if Trader reference or PIDS IOR file/URL couldn't be resolved

validatePidsRef

public static org.omg.PersonIdService.IdentificationComponent validatePidsRef(org.omg.CORBA.ORB theORB,
                                                                              java.lang.String pidsIOROrTraderRef)
obtains the IOR of a PIDS either indirectly via a Trader reference or directly via the PIDS IOR file or URL

Parameters:
theORB - a reference to a CORBA ORB object
pidsIOROrTraderRef - the name of a PIDS IOR file or a combination of qualified PIDS name and Trader IOR file
Returns:
a reference to the PIDS CORBA object or null if PIDS specification couldn't be validated


Copyright © 2000 University of California. All Rights Reserved.