gov.lanl.SSLTools
Class OMSession

java.lang.Object
  |
  +--gov.lanl.SSLTools.OMSession

public class OMSession
extends java.lang.Object

Create an OpenEMed session by creating the orb connection with/without SSL, Authentication, and open and instantiate the prescribed object with the ServiceInterface containing the initialized orb.

Version:
$Revision: 1.29 $ $Date: 2003/03/04 22:33:01 $
Author:
Jim George

Field Summary
static java.lang.String[][] OMKEYS_VALUES
           
static java.lang.String TARGET_CLASS
          The keyword for the class to instantiate for the session which has a constructor with arguments of (Properties, ServiceInterface)
 
Constructor Summary
OMSession(java.lang.String[] args)
          Constructor for the OpenEMed session with all of the required parameters in the properties file
OMSession(java.lang.String[] inArgs, java.util.Properties inProps, java.lang.String inKeyStorePath, java.lang.String inKeyAlias, java.lang.String inKeyPassword, boolean inIsServer, boolean inAllowInsecure)
          Constructor for the OpenEMed session with the remaining required parameters in the properties file
 
Method Summary
static void certifyKeywords(java.util.Properties inProps)
          certify the Keywords contained in the input properties
static void main(java.lang.String[] args)
          Starts the OMSession as an application, requiring the keywords for OMSession, and and ServiceFactory or prompting for them.
static void printRequiredKeywords()
          Print the required keywords from the ServiceInterface specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TARGET_CLASS

public static java.lang.String TARGET_CLASS
The keyword for the class to instantiate for the session which has a constructor with arguments of (Properties, ServiceInterface)


OMKEYS_VALUES

public static java.lang.String[][] OMKEYS_VALUES
Constructor Detail

OMSession

public OMSession(java.lang.String[] args)
          throws ServiceException
Constructor for the OpenEMed session with all of the required parameters in the properties file

Parameters:
args - are the command line arguments (must contain -file 'properties' for target class)
Throws:
ServiceException - is thrown when things are wrong

OMSession

public OMSession(java.lang.String[] inArgs,
                 java.util.Properties inProps,
                 java.lang.String inKeyStorePath,
                 java.lang.String inKeyAlias,
                 java.lang.String inKeyPassword,
                 boolean inIsServer,
                 boolean inAllowInsecure)
          throws ServiceException
Constructor for the OpenEMed session with the remaining required parameters in the properties file

Parameters:
inArgs - are the command line arguments
inProps - is the properties file to use
inKeyStorePath - is the pathname for the keystore to use
inKeyAlias - is the alias to use
inKeyPassword - is the password to use for the alias's credentials
inIsServer - is true for servers and false for clients
inAllowInsecure - is true to allow insecure connections, else false
Throws:
ServiceException - is thrown when things are wrong
Method Detail

printRequiredKeywords

public static void printRequiredKeywords()
Print the required keywords from the ServiceInterface specified


certifyKeywords

public static void certifyKeywords(java.util.Properties inProps)
                            throws ServiceException
certify the Keywords contained in the input properties

Parameters:
inProps -
Throws:
ServiceException

main

public static void main(java.lang.String[] args)
Starts the OMSession as an application, requiring the keywords for OMSession, and and ServiceFactory or prompting for them. Use a -file in the command line arguments to set parameters.

Parameters:
args - are the command line arguments


Copyright © 2000 Apache Software Foundation. All Rights Reserved.