gov.lanl.IDViewer
Class PidsTraderCorbaHelper
java.lang.Object
|
+--gov.lanl.IDViewer.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:
- 11/05/98 $Id: PidsTraderCorbaHelper.java,v 1.4 2002/06/28 16:02:38 dwforslund Exp $
- Author:
- Torsten Staab
|
Field Summary |
static org.apache.log4j.Logger |
cat
|
|
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 |
cat
public static org.apache.log4j.Logger cat
PidsTraderCorbaHelper
public PidsTraderCorbaHelper()
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 objecttraderRefOrPidsIORFile - 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 objectpidsIOROrTraderRef - 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.