org.apache.cactus.eclipse.runner.ui
Class CactusPreferences

java.lang.Object
  extended by org.apache.cactus.eclipse.runner.ui.CactusPreferences

public class CactusPreferences
extends java.lang.Object

Central class for managing the Cactus preferences.

Version:
$Id: CactusPreferences.java 238816 2004-02-29 16:36:46Z vmassol $

Field Summary
static java.lang.String CONTEXT_URL_HOST
          The host component of the context URL preference.
static java.lang.String CONTEXT_URL_PATH
          The path component of the context URL preference.
static java.lang.String CONTEXT_URL_PORT
          The port component of the context URL preference.
static java.lang.String CONTEXT_URL_SCHEME
          The protocol scheme component of the context URL (either 'http' or 'https') preference.
static java.lang.String JETTY
          id for the Jetty container selection preference.
static java.lang.String JETTY_XML
          id for the jetty.xml location preference.
static java.lang.String TEMP_DIR
          The temp directory used by the plugin to set up containers.
 
Constructor Summary
CactusPreferences()
           
 
Method Summary
static java.lang.String getContainerDir(java.lang.String theContainerId)
           
static java.util.Hashtable getContainerHomes()
           
static java.lang.String getContextURL()
           
static java.lang.String getContextURLPath()
           
static int getContextURLPort()
           
static boolean getJetty()
           
static java.lang.String getJettyXML()
           
static java.lang.String getTempDir()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_URL_SCHEME

public static final java.lang.String CONTEXT_URL_SCHEME
The protocol scheme component of the context URL (either 'http' or 'https') preference.

See Also:
Constant Field Values

CONTEXT_URL_HOST

public static final java.lang.String CONTEXT_URL_HOST
The host component of the context URL preference.

See Also:
Constant Field Values

CONTEXT_URL_PORT

public static final java.lang.String CONTEXT_URL_PORT
The port component of the context URL preference.

See Also:
Constant Field Values

CONTEXT_URL_PATH

public static final java.lang.String CONTEXT_URL_PATH
The path component of the context URL preference.

See Also:
Constant Field Values

TEMP_DIR

public static final java.lang.String TEMP_DIR
The temp directory used by the plugin to set up containers.

See Also:
Constant Field Values

JETTY

public static final java.lang.String JETTY
id for the Jetty container selection preference.

See Also:
Constant Field Values

JETTY_XML

public static final java.lang.String JETTY_XML
id for the jetty.xml location preference.

See Also:
Constant Field Values
Constructor Detail

CactusPreferences

public CactusPreferences()
Method Detail

getContextURL

public static java.lang.String getContextURL()
Returns:
the context URL that should be used by the client, as configured in the plug-in preferences.

getContextURLPort

public static int getContextURLPort()
Returns:
the context URL port that should be used by the client, as configured in the plug-in preferences.

getContextURLPath

public static java.lang.String getContextURLPath()
Returns:
the context URL path that should be used by the client, as configured in the plug-in preferences.

getTempDir

public static java.lang.String getTempDir()
Returns:
the temp directory used by cactus, as configured in the plug-in preferences.

getContainerDir

public static java.lang.String getContainerDir(java.lang.String theContainerId)
Parameters:
theContainerId - container id
Returns:
the home directory for the given container id.

getJetty

public static boolean getJetty()
Returns:
true if Jetty is selected

getJettyXML

public static java.lang.String getJettyXML()
Returns:
the jetty.xml location

getContainerHomes

public static java.util.Hashtable getContainerHomes()
Returns:
the ContainerHome array


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.