Ontimize 5.2071EN

com.ontimize.gui
Class ApplicationLauncher

java.lang.Object
  extended bycom.ontimize.gui.ApplicationLauncher

public class ApplicationLauncher
extends java.lang.Object


Nested Class Summary
protected  class ApplicationLauncher.StartedThread
           
 
Field Summary
static boolean alloy
           
protected  Application application
           
static boolean DEBUG
           
static java.lang.String HTTP_PROXY_HOST
           
static java.lang.String HTTP_PROXY_PORT
           
static java.lang.String HTTPS_PROXY_HOST
           
static java.lang.String HTTPS_PROXY_PORT
           
static java.lang.String START_LOOK_AND_FEEL
           
 
Constructor Summary
ApplicationLauncher(java.lang.String labelsPath, java.lang.String clientApplicationPath, java.lang.String packageName)
           
 
Method Summary
static void checkLibraries()
           
static java.util.Hashtable getProxies(java.util.Properties systemProperties)
          Returns a Hastable with the proxy ports values and the proxy hosts related to the application.
static java.lang.Process launchApplication(java.lang.String mainClass, java.lang.String[] arguments, java.util.Properties sp)
          Process launcher
static void main(java.lang.String[] args)
          Launches the client application.
protected static void removeRMISocketFactory()
          Method used to fix the problem with java web start 1.5.0 when client has a proxy
static void saveTinyTheme()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_LOOK_AND_FEEL

public static java.lang.String START_LOOK_AND_FEEL

DEBUG

public static boolean DEBUG

alloy

public static boolean alloy

application

protected Application application

HTTP_PROXY_HOST

public static final java.lang.String HTTP_PROXY_HOST
See Also:
Constant Field Values

HTTPS_PROXY_HOST

public static final java.lang.String HTTPS_PROXY_HOST
See Also:
Constant Field Values

HTTP_PROXY_PORT

public static final java.lang.String HTTP_PROXY_PORT
See Also:
Constant Field Values

HTTPS_PROXY_PORT

public static final java.lang.String HTTPS_PROXY_PORT
See Also:
Constant Field Values
Constructor Detail

ApplicationLauncher

public ApplicationLauncher(java.lang.String labelsPath,
                           java.lang.String clientApplicationPath,
                           java.lang.String packageName)
Method Detail

saveTinyTheme

public static void saveTinyTheme()

main

public static void main(java.lang.String[] args)
Launches the client application.
Syntax: ApplicationLauncher 'xmlLabelFile' 'xmlApplicationFile' ['package'] [-d(for debug)] [-https/http (for https/http tunneling)] [-nathttp/nathttps (for https/http tunneling using NAT socket factory)] [-ssl -sslnoreconnect]
The parameters configuration is:

param meaning status example
xmlLabelFile the path to the file that contains the label information, which is used to interpret the xml tags mandatory; a default file exist com/ontimize/gui/labels.xml, which is the default path with the labels of the default Ontimize fields and components
xmlApplicationFile the path to the file that describes the application mandatory com/project/client/clientapplication.xml
package optional

Parameters:
args -

checkLibraries

public static void checkLibraries()

removeRMISocketFactory

protected static void removeRMISocketFactory()
Method used to fix the problem with java web start 1.5.0 when client has a proxy


launchApplication

public static java.lang.Process launchApplication(java.lang.String mainClass,
                                                  java.lang.String[] arguments,
                                                  java.util.Properties sp)
                                           throws java.io.IOException
Process launcher

Parameters:
mainClass -
arguments -
sp -
Returns:
Throws:
java.io.IOException

getProxies

public static java.util.Hashtable getProxies(java.util.Properties systemProperties)
Returns a Hastable with the proxy ports values and the proxy hosts related to the application.


Ontimize