electric.webserver
Class WebServers

java.lang.Object
  extended byelectric.webserver.WebServers

public final class WebServers
extends java.lang.Object

WebServers.

Author:
webMethods

Constructor Summary
WebServers()
           
 
Method Summary
static void addWebServer(int port, WebServer webServer)
           
static WebServer getWebServer(int port)
          Return the web server associated with the specified port, or null if there is none.
static WebServer[] getWebServers()
           
static void removeWebServer(int port)
           
static void shutdownAllWebServers()
          Shutdown all web servers.
static WebServer startWebServer(java.lang.String url)
          Return the web server that is currently running on the specified URL, or start one automatically if not found.
static WebServer startWebServer(java.lang.String url, Context context)
          Return the web server that is currently running on the specified URL, or start one automatically if not found.
static WebServer startWebServer(XURL xurl)
          Return the web server that is currently running on the specified URL, or start one automatically if not found.
static WebServer startWebServer(XURL xurl, Context context)
          Return the web server that is currently running on the specified URL, or start one automatically if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServers

public WebServers()
Method Detail

addWebServer

public static void addWebServer(int port,
                                WebServer webServer)
Parameters:
port -
webServer -

getWebServer

public static WebServer getWebServer(int port)
Return the web server associated with the specified port, or null if there is none.

Parameters:
port - The port number.

removeWebServer

public static void removeWebServer(int port)
Parameters:
port -

getWebServers

public static WebServer[] getWebServers()

startWebServer

public static WebServer startWebServer(java.lang.String url)
                                throws java.io.IOException
Return the web server that is currently running on the specified URL, or start one automatically if not found.

Parameters:
url - The URL.
Throws:
java.io.IOException - If an I/O exception occurs when starting a new web server.

startWebServer

public static WebServer startWebServer(java.lang.String url,
                                       Context context)
                                throws java.io.IOException
Return the web server that is currently running on the specified URL, or start one automatically if not found.

Parameters:
url -
context -
Throws:
java.io.IOException

startWebServer

public static WebServer startWebServer(XURL xurl)
                                throws java.io.IOException
Return the web server that is currently running on the specified URL, or start one automatically if not found.

Parameters:
xurl - The URL.
Throws:
java.io.IOException - If an I/O exception occurs when starting a new web server.

startWebServer

public static WebServer startWebServer(XURL xurl,
                                       Context context)
                                throws java.io.IOException
Return the web server that is currently running on the specified URL, or start one automatically if not found.

Parameters:
xurl - The URL.
Throws:
java.io.IOException - If an I/O exception occurs when starting a new web server.

shutdownAllWebServers

public static void shutdownAllWebServers()
Shutdown all web servers.



copyright© 2001-2004 by webMethods All Rights Reserved.