public class AdminServer
extends java.lang.Object
implements org.springframework.context.SmartLifecycle, org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADMIN_PROFILE |
protected org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
AdminServer(AdminOptions adminOptions) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Create an embedded Tomcat instance and have it run the WebApplicationContext
|
org.springframework.web.context.support.XmlWebApplicationContext |
getApplicationContext() |
int |
getLocalPort()
Get the underlying HTTP port if a random port was requested, user port = 0.
|
int |
getPhase() |
int |
getPort() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
run()
Call's
afterPropertiesSet() and start() |
void |
setContextPath(java.lang.String contextPath)
Set the contextPath to serve requests on.
|
void |
setServletName(java.lang.String servletName)
Set the servletName.
|
void |
start() |
void |
stop() |
void |
stop(java.lang.Runnable callback) |
protected final org.apache.commons.logging.Log logger
public static final java.lang.String ADMIN_PROFILE
public AdminServer(AdminOptions adminOptions)
public void setContextPath(java.lang.String contextPath)
public void setServletName(java.lang.String servletName)
servletName
- public int getPort()
public int getLocalPort()
public org.springframework.web.context.support.XmlWebApplicationContext getApplicationContext()
public void run()
afterPropertiesSet()
and start()
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void stop(java.lang.Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle