@IocBean public class TomcatStarter extends Object implements ClassLoaderAware, ServerFace, org.nutz.lang.util.LifeCycle, AppContextAware
十步杀一人 千里不留行 事了扶衣去 深藏功与名
| Modifier and Type | Class and Description |
|---|---|
class |
TomcatStarter.ClasspathResourceSet |
| Modifier and Type | Field and Description |
|---|---|
protected AppContext |
appContext |
protected ClassLoader |
classLoader |
protected static String |
PRE |
static String |
PROP_CONTEXT_PATH |
static String |
PROP_HOST |
static String |
PROP_PORT |
static String |
PROP_SESSION_TIMEOUT |
static String |
PROP_STATIC_PATH |
protected org.apache.catalina.startup.Tomcat |
tomcat |
protected org.apache.catalina.core.StandardContext |
tomcatContext |
| Constructor and Description |
|---|
TomcatStarter() |
| Modifier and Type | Method and Description |
|---|---|
void |
depose() |
boolean |
failsafe() |
void |
fetch() |
String |
getContextPath() |
String |
getHost() |
int |
getMaxThread() |
int |
getPort() |
int |
getSessionTimeout() |
String |
getStaticPath() |
void |
init() |
boolean |
isRunning() |
void |
setAppContext(AppContext appContext) |
void |
setClassLoader(ClassLoader classLoader) |
void |
start() |
void |
stop() |
protected static final String PRE
@PropDoc(group="tomcat", value="\u76d1\u542c\u7684ip\u5730\u5740", defaultValue="0.0.0.0") public static final String PROP_HOST
@PropDoc(group="tomcat", value="\u76d1\u542c\u7684\u7aef\u53e3", defaultValue="8080", type="int") public static final String PROP_PORT
@PropDoc(group="tomcat", value="\u4e0a\u4e0b\u6587\u8def\u5f84") public static final String PROP_CONTEXT_PATH
@PropDoc(value="Session\u7a7a\u95f2\u65f6\u95f4,\u5355\u4f4d\u5206\u949f", defaultValue="30", type="int") public static final String PROP_SESSION_TIMEOUT
@PropDoc(group="tomcat", value="\u9759\u6001\u6587\u4ef6\u8def\u5f84", defaultValue="static") public static final String PROP_STATIC_PATH
protected org.apache.catalina.startup.Tomcat tomcat
protected org.apache.catalina.core.StandardContext tomcatContext
protected ClassLoader classLoader
protected AppContext appContext
public void init()
throws org.apache.catalina.LifecycleException
init in interface org.nutz.lang.util.LifeCycleorg.apache.catalina.LifecycleExceptionpublic void start()
throws org.apache.catalina.LifecycleException
start in interface ServerFaceorg.apache.catalina.LifecycleExceptionpublic void stop()
throws org.apache.catalina.LifecycleException
stop in interface ServerFaceorg.apache.catalina.LifecycleExceptionpublic boolean isRunning()
isRunning in interface ServerFacepublic void setAppContext(AppContext appContext)
setAppContext in interface AppContextAwarepublic void setClassLoader(ClassLoader classLoader)
setClassLoader in interface ClassLoaderAwarepublic boolean failsafe()
failsafe in interface ServerFacepublic void fetch()
fetch in interface org.nutz.lang.util.LifeCyclepublic void depose()
throws org.apache.catalina.LifecycleException
depose in interface org.nutz.lang.util.LifeCycleorg.apache.catalina.LifecycleExceptionpublic int getPort()
public String getHost()
public String getStaticPath()
public String getContextPath()
public int getSessionTimeout()
public int getMaxThread()
Copyright © 2018. All rights reserved.