public abstract class AbstractJettyComponent extends java.lang.Object implements JettyComponent
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
classLocations |
protected java.lang.String[] |
configLocations |
protected java.lang.String |
contextPath |
static java.lang.String |
JETTY_LOCAL_IP |
static int |
JETTY_STOP_PORT |
protected static org.apache.commons.logging.Log |
logger |
protected int |
port |
protected java.lang.String |
publicApiServletName |
protected static org.eclipse.jetty.server.Server |
server |
Constructor and Description |
---|
AbstractJettyComponent(int port,
java.lang.String contextPath,
java.lang.String[] configLocations,
java.lang.String[] classLocations) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.eclipse.jetty.webapp.WebAppContext webAppContext) |
protected abstract void |
configureWebAppContext(org.eclipse.jetty.webapp.WebAppContext webAppContext) |
protected org.springframework.web.context.WebApplicationContext |
createWebApplicationContext(javax.servlet.ServletContext sc,
org.springframework.context.ApplicationContext parent) |
org.springframework.context.ConfigurableApplicationContext |
getApplicationContext() |
int |
getPort() |
void |
shutdown() |
void |
start() |
protected static final org.apache.commons.logging.Log logger
public static final int JETTY_STOP_PORT
public static final java.lang.String JETTY_LOCAL_IP
protected int port
protected java.lang.String contextPath
protected java.lang.String publicApiServletName
protected java.lang.String[] configLocations
protected java.lang.String[] classLocations
protected static org.eclipse.jetty.server.Server server
public AbstractJettyComponent(int port, java.lang.String contextPath, java.lang.String[] configLocations, java.lang.String[] classLocations)
public int getPort()
getPort
in interface JettyComponent
protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext sc, org.springframework.context.ApplicationContext parent)
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
getApplicationContext
in interface JettyComponent
protected abstract void configureWebAppContext(org.eclipse.jetty.webapp.WebAppContext webAppContext)
public void start()
start
in interface JettyComponent
protected void configure(org.eclipse.jetty.webapp.WebAppContext webAppContext)
public void shutdown()
shutdown
in interface JettyComponent
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.