|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectelectric.webserver.WebServers
WebServers.
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 |
public WebServers()
Method Detail |
public static void addWebServer(int port, WebServer webServer)
port
- webServer
- public static WebServer getWebServer(int port)
port
- The port number.public static void removeWebServer(int port)
port
- public static WebServer[] getWebServers()
public static WebServer startWebServer(java.lang.String url) throws java.io.IOException
url
- The URL.
java.io.IOException
- If an I/O exception occurs when starting a new web server.public static WebServer startWebServer(java.lang.String url, Context context) throws java.io.IOException
url
- context
-
java.io.IOException
public static WebServer startWebServer(XURL xurl) throws java.io.IOException
xurl
- The URL.
java.io.IOException
- If an I/O exception occurs when starting a new web server.public static WebServer startWebServer(XURL xurl, Context context) throws java.io.IOException
xurl
- The URL.
java.io.IOException
- If an I/O exception occurs when starting a new web server.public static void shutdownAllWebServers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |