public class ServerFactory extends Object
Modifier and Type | Method and Description |
---|---|
static IServer |
getServer() |
static IServer |
getServer(int port) |
static IServer |
getServer(int port,
String context) |
static IServer |
getServer(int port,
String context,
int scanIntervalSeconds) |
static IServer |
getServer(String webAppDir,
int port,
String context) |
static IServer |
getServer(String webAppDir,
int port,
String context,
int scanIntervalSeconds)
Return web server.
|
public static IServer getServer(String webAppDir, int port, String context, int scanIntervalSeconds)
important: if scanIntervalSeconds < 1 then you will turn off the hot swap
webAppDir
- the directory of the project web rootport
- the portcontext
- the contextscanIntervalSeconds
- the scan interval secondspublic static IServer getServer(int port)
public static IServer getServer()
Copyright © 2018. All rights reserved.