|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.resin.WebAppEmbed
public class WebAppEmbed
Embeddable version of a Resin web-app.
ResinEmbed resin = new ResinEmbed();
WebAppEmbed webApp = new WebAppEmbed("/foo", "/var/resin/foo");
resin.addWebApp(webApp);
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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-appMethod Detail |
---|
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |