com.borland.jbuilder.runtime.servlet
Class ServerManager
java.lang.Object
|
+--com.borland.jbuilder.runtime.servlet.ServerManager
- public class ServerManager
- extends java.lang.Object
Manages servlet engines (web servers) registered as OpenTools
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registerServer
public static void registerServer(java.lang.String name,
ServerSetup setupObject)
- Registers a server. (Note that you may register multiple instances of the
same
ServerSetup
implementation under different names, and
configure them differently.)
- Parameters:
name
- display name of the server (used for the list of available
servers in the run configuration dialog), also used to reference the server.setupObject
- ServerSetup object for the server
getServerNames
public static java.lang.String[] getServerNames()
- Returns a list of the registered servers.
- Returns:
- array of registered server names
getServerSetup
public static ServerSetup getServerSetup(java.lang.String name)
- Returns a registered server.
- Parameters:
name
- display name of the server, the name by which it was registered- Returns:
- named
ServerSetup
object, or null if not found
attemptDefaultConfigurations
public static void attemptDefaultConfigurations()
- Calls
attemptDefaultConfiguation
on all the unconfigured registered
servers. This method is called the first time the JSP/Servlet run
configuration page is displayed so that servers that require manual
configuration can be indicated visually.