|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.help.AppServer
Singleton class for obtaining the platform app server.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
AppServer()
|
Method Summary | |
static boolean |
add(String webAppName,
String plugin,
String path)
Adds the specified webapp from a plugin. |
static String |
getHost()
Returns the host name or ip the app server runs on. |
static int |
getPort()
Returns the port number the app server listens on. |
static boolean |
isRunning()
Checks if the app server is running. |
static void |
remove(String webApp,
String plugin)
Removes the specified webapp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AppServer()
Method Detail |
public static boolean add(String webAppName, String plugin, String path)
It is assumed that webapp names are unique. It is suggested to create unique web app names by prefixing them with the plugin id.
webAppName
- the name of the web application (context name)plugin
- the plugin identifier of the webapppath
- the plugin relative path where the web app WAR or directory is located
public static void remove(String webApp, String plugin)
webApp
- the name of the web appplugin
- the plugin containg the web app. Not used now.public static String getHost()
public static int getPort()
public static boolean isRunning()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |