public class ServletContainerFactory
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor | Description |
|---|---|
ServletContainerFactory(CompiledClassPath compiledClassPath,
WebAppPath webAppPath) |
| Modifier and Type | Method | Description |
|---|---|---|
protected org.eclipse.jetty.webapp.Configuration[] |
makeConfigurations() |
|
protected org.eclipse.jetty.util.resource.PathResource |
makeFileResource(java.net.URI classPath) |
|
protected org.eclipse.jetty.server.NCSARequestLog |
makeRequestLog(java.lang.String logFile) |
|
protected java.lang.String |
makeResourceBase(java.net.URI webApp) |
|
protected org.eclipse.jetty.server.ServerConnector |
makeServerConnector(org.eclipse.jetty.server.Server server,
int port) |
|
ServletContainer |
makeServletContainer(java.lang.String documentRoot,
java.lang.Class clazz,
int port,
java.lang.String requestLog) |
|
ServletContainer |
makeServletContainer(java.lang.String documentRoot,
java.lang.Class clazz,
java.lang.String customWebAppLocation,
int port,
java.lang.String requestLog) |
|
ServletContainer |
makeServletContainer(java.lang.String documentRoot,
java.net.URI webApp,
java.net.URI compliedClassPath,
int port,
java.lang.String requestLog) |
|
ServletContainer |
makeServletContainerFromWar(java.lang.String documentRoot,
java.net.URI warFilePath,
int port,
java.lang.String requestLog) |
|
protected org.eclipse.jetty.webapp.WebAppContext |
makeWebAppContext(java.lang.String documentRoot,
java.lang.String resourceBase,
org.eclipse.jetty.webapp.Configuration[] configurations,
org.eclipse.jetty.util.resource.PathResource containerResources) |
|
protected org.eclipse.jetty.webapp.WebAppContext |
makeWebAppContextForWAR(java.lang.String documentRoot,
org.eclipse.jetty.webapp.Configuration[] configurations,
org.eclipse.jetty.util.resource.Resource war) |
public ServletContainerFactory(CompiledClassPath compiledClassPath, WebAppPath webAppPath)
public ServletContainer makeServletContainer(java.lang.String documentRoot, java.lang.Class clazz, int port, java.lang.String requestLog) throws java.net.URISyntaxException, java.io.IOException
documentRoot - root path for the servlet container to run. example, "/"clazz - a class in your project.port - the port the container should use. 0 will randomly assign a port.java.net.URISyntaxException - if an issue occurred constructing a URIjava.io.IOException - if issues come up regarding webapp or containerResourcespublic ServletContainer makeServletContainer(java.lang.String documentRoot, java.lang.Class clazz, java.lang.String customWebAppLocation, int port, java.lang.String requestLog) throws java.net.URISyntaxException, java.io.IOException
java.net.URISyntaxExceptionjava.io.IOExceptionpublic ServletContainer makeServletContainer(java.lang.String documentRoot, java.net.URI webApp, java.net.URI compliedClassPath, int port, java.lang.String requestLog) throws java.io.IOException
documentRoot - root path for the servlet container to run. example, "/"webApp - absolute file path to the webapp directory in your project.compliedClassPath - absolute file path to, target/classes/ in your project.port - the port the container should use. 0 will randomly assign a port.java.io.IOException - if issues come up regarding webapp or containerResourcespublic ServletContainer makeServletContainerFromWar(java.lang.String documentRoot, java.net.URI warFilePath, int port, java.lang.String requestLog) throws java.io.IOException
java.io.IOExceptionprotected org.eclipse.jetty.webapp.WebAppContext makeWebAppContext(java.lang.String documentRoot,
java.lang.String resourceBase,
org.eclipse.jetty.webapp.Configuration[] configurations,
org.eclipse.jetty.util.resource.PathResource containerResources)
protected org.eclipse.jetty.webapp.WebAppContext makeWebAppContextForWAR(java.lang.String documentRoot,
org.eclipse.jetty.webapp.Configuration[] configurations,
org.eclipse.jetty.util.resource.Resource war)
protected java.lang.String makeResourceBase(java.net.URI webApp)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionprotected org.eclipse.jetty.util.resource.PathResource makeFileResource(java.net.URI classPath)
throws java.io.IOException
java.io.IOExceptionprotected org.eclipse.jetty.webapp.Configuration[] makeConfigurations()
protected org.eclipse.jetty.server.ServerConnector makeServerConnector(org.eclipse.jetty.server.Server server,
int port)
protected org.eclipse.jetty.server.NCSARequestLog makeRequestLog(java.lang.String logFile)