public class WebAppEmbed
extends java.lang.Object
ResinEmbed resin = new ResinEmbed();
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
resin.addWebApp(webApp);
Constructor and Description |
---|
WebAppEmbed()
Creates a new embedded webapp
|
WebAppEmbed(java.lang.String contextPath)
Creates a new embedded webapp
|
WebAppEmbed(java.lang.String contextPath,
java.lang.String rootDirectory)
Creates a new embedded webapp
|
Modifier and Type | Method and Description |
---|---|
void |
addBean(BeanEmbed bean)
Adds a web bean.
|
void |
addFilter(FilterEmbed filter)
Adds a filter definition
|
void |
addFilterMapping(FilterMappingEmbed filterMapping)
Adds a filter-mapping definition
|
void |
addServlet(ServletEmbed servlet)
Adds a servlet definition
|
void |
addServletMapping(ServletMappingEmbed servletMapping)
Adds a servlet-mapping definition
|
protected void |
configure(WebApp webApp)
Configures the web-app (for internal use)
|
java.lang.String |
getArchivePath()
The path to the archive war file
|
java.lang.String |
getContextPath()
The context-path
|
WebAppSingleDeployGenerator |
getDeployGenerator() |
java.lang.String |
getRootDirectory()
The root directory of the expanded web-app
|
WebApp |
getWebApp() |
void |
setArchivePath(java.lang.String archivePath)
The path to the archive war file
|
void |
setContextParam(java.lang.String name,
java.lang.String value)
Sets a context-param.
|
void |
setContextPath(java.lang.String contextPath)
The context-path
|
void |
setDeployGenerator(WebAppSingleDeployGenerator deployGenerator) |
void |
setDisableStart(boolean isDisable)
For cases like JSP compilation, skip the startup step.
|
void |
setRootDirectory(java.lang.String rootDirectory)
The root directory of the expanded web-app
|
public WebAppEmbed()
public WebAppEmbed(java.lang.String contextPath)
contextPath
- the URL prefix of the web-apppublic WebAppEmbed(java.lang.String contextPath, java.lang.String rootDirectory)
contextPath
- the URL prefix of the web-approotDirectory
- the root directory of the web-apppublic void setContextPath(java.lang.String contextPath)
public java.lang.String getContextPath()
public void setRootDirectory(java.lang.String rootDirectory)
public java.lang.String getRootDirectory()
public void setArchivePath(java.lang.String archivePath)
public java.lang.String getArchivePath()
public void setDeployGenerator(WebAppSingleDeployGenerator deployGenerator)
public WebAppSingleDeployGenerator getDeployGenerator()
public void addServlet(ServletEmbed servlet)
public void addServletMapping(ServletMappingEmbed servletMapping)
public void addFilter(FilterEmbed filter)
public void addFilterMapping(FilterMappingEmbed filterMapping)
public void addBean(BeanEmbed bean)
public void setContextParam(java.lang.String name, java.lang.String value)
public void setDisableStart(boolean isDisable)
public WebApp getWebApp()
protected void configure(WebApp webApp)