org.gsm.oneapi.foundation
Class CommandLineOptions

java.lang.Object
  extended by org.gsm.oneapi.foundation.CommandLineOptions

public class CommandLineOptions
extends java.lang.Object

Used with the command line based examples to retrieve command line variables


Constructor Summary
CommandLineOptions()
           
 
Method Summary
static java.lang.String getPassword(java.lang.String[] args)
          Get a password argument, expected to be the argument following '-p', '-pass' or '-password'
static ServiceEndpoints getServiceEndpoints(java.lang.String[] args)
          Get a classname for service endpoints, expected to be the argument following '-e', '-end' or '-endpoints'
static java.lang.String getUsername(java.lang.String[] args)
          Get a username argument, expected to be the argument following '-u', '-user' or '-username'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineOptions

public CommandLineOptions()
Method Detail

getUsername

public static java.lang.String getUsername(java.lang.String[] args)
Get a username argument, expected to be the argument following '-u', '-user' or '-username'


getPassword

public static java.lang.String getPassword(java.lang.String[] args)
Get a password argument, expected to be the argument following '-p', '-pass' or '-password'


getServiceEndpoints

public static ServiceEndpoints getServiceEndpoints(java.lang.String[] args)
Get a classname for service endpoints, expected to be the argument following '-e', '-end' or '-endpoints'