|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.webapp.WebAppContainer
public class WebAppContainer
Resin's webApp implementation.
| Constructor Summary | |
|---|---|
WebAppContainer()
Creates the webApp with its environment loader. |
|
WebAppContainer(EnvironmentClassLoader loader)
Creates the webApp with its environment loader. |
|
| Method Summary | |
|---|---|
void |
addApplication(EarConfig config)
Adds an enterprise webApp. |
void |
addDeploy(DeployGenerator deploy)
Sets the war-expansion |
void |
addEarDefault(EarConfig config)
Adds an ear default |
void |
addEarDeploy(EarDeployGenerator earDeploy)
Adds the ear-expansion |
void |
addErrorPage(ErrorPage errorPage)
Adds an error page |
void |
addWarDeploy(WebAppExpandDeployGenerator webAppDeploy)
Sets the war-expansion |
void |
addWebApp(WebAppConfig config)
Adds an webApp. |
void |
addWebAppDefault(WebAppConfig init)
Adds a web-app default |
void |
addWebAppDeploy(WebAppExpandDeployGenerator deploy)
Sets the war-expansion |
void |
buildErrorInvocation(Invocation invocation)
Creates the error invocation. |
void |
buildForwardInvocation(Invocation invocation)
Creates the invocation. |
void |
buildIncludeInvocation(Invocation invocation)
Creates the invocation. |
Invocation |
buildInvocation(Invocation invocation)
Creates the invocation. |
void |
buildLoginInvocation(Invocation invocation)
Creates the invocation. |
void |
classLoaderDestroy(DynamicClassLoader loader)
Handles the case where a class loader is dropped. |
void |
classLoaderInit(DynamicClassLoader loader)
Handles the case where a class loader has completed initialization |
void |
clearCache()
Clears the cache |
AbstractAccessLog |
createAccessLog()
Sets the access log. |
EarDeployGenerator |
createEarDeploy()
Sets the ear-expansion |
RewriteDispatch |
createRewriteDispatch()
Adds rewrite-dispatch. |
WebAppExpandDeployGenerator |
createWarDeploy()
Sets the war-expansion |
WebAppExpandDeployGenerator |
createWebAppDeploy()
Sets the war-expansion |
void |
destroy()
Closes the container. |
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where the environment is starting (after init). |
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where the environment is stopping |
void |
expandEarDeploy(java.lang.String name)
Updates an ear deploy |
WebAppController |
findByURI(java.lang.String uri)
Finds the web-app matching the current entry. |
WebAppController |
findController(java.lang.String subURI)
Finds the web-app for the entry, not checking for sub-apps. |
WebApp |
findSubWebAppByURI(java.lang.String uri)
Creates the invocation. |
WebApp |
findWebAppByURI(java.lang.String uri)
Creates the invocation. |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader. |
DispatchServer |
getDispatchServer()
Gets the dispatch server. |
Path |
getDocumentDirectory()
Gets the document directory. |
java.util.ArrayList<EarConfig> |
getEarDefaultList()
Returns the list of ear defaults |
java.util.ArrayList<EarDeployController> |
getEntAppList()
Returns a list of the webApps. |
ErrorPageManager |
getErrorPageManager()
Returns the error page manager |
WebApp |
getErrorWebApp()
Returns the error webApp during startup. |
Host |
getHost()
Returns the owning host. |
java.lang.String |
getHostName()
Returns the host name for the container. |
RequestDispatcher |
getRequestDispatcher(java.lang.String url)
Returns a dispatcher for the named servlet. |
Path |
getRootDirectory()
Gets the root directory. |
SessionManager |
getSessionManager()
Returns the container's session manager. |
java.lang.String |
getURL()
Returns the URL for the container. |
Path |
getWarDir()
Gets the war-dir. |
Path |
getWarExpandDir()
Gets the war-expand-dir. |
java.util.ArrayList<WebAppConfig> |
getWebAppDefaultList()
Returns the list of web-app defaults |
DeployContainer<WebAppController> |
getWebAppGenerator()
Returns the webApp generator |
java.util.ArrayList<WebAppController> |
getWebAppList()
Returns a list of the webApps. |
void |
init()
Init the container. |
boolean |
isActive()
Returns true if the webApp container is active |
boolean |
isDestroyed()
Returns true if the webApp container has been closed. |
boolean |
isModified()
Returns true if modified. |
void |
removeWebAppDeploy(DeployGenerator deploy)
Removes a web-app-generator. |
void |
setAccessLog(AbstractAccessLog log)
Sets the access log. |
void |
setConfigException(java.lang.Throwable e)
Sets a configuration exception. |
void |
setDispatchServer(DispatchServer server)
Sets the dispatch server. |
void |
setDocDir(Path path)
Sets the document directory. |
void |
setDocumentDirectory(Path path)
Sets the document directory. |
void |
setEnvironmentClassLoader(EnvironmentClassLoader loader)
sets the class loader. |
void |
setRootDirectory(Path path)
Sets the root directory. |
void |
setWarDir(Path warDir)
Sets the war-dir for backwards compatibility. |
void |
setWarExpandDir(Path warDir)
Sets the war-expand-dir. |
protected void |
start()
Starts the container. |
void |
startEarDeploy(java.lang.String name)
Start an ear |
boolean |
stop()
Closes the container. |
void |
updateEarDeploy(java.lang.String name)
Updates an ear deploy |
void |
updateWebAppDeploy(java.lang.String name)
Updates a WebApp deploy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebAppContainer()
public WebAppContainer(EnvironmentClassLoader loader)
| Method Detail |
|---|
public void setDispatchServer(DispatchServer server)
public DispatchServer getDispatchServer()
public java.lang.ClassLoader getClassLoader()
public void setEnvironmentClassLoader(EnvironmentClassLoader loader)
public Host getHost()
public Path getRootDirectory()
public void setRootDirectory(Path path)
public Path getDocumentDirectory()
public void setDocumentDirectory(Path path)
public void setDocDir(Path path)
public AbstractAccessLog createAccessLog()
public void setAccessLog(AbstractAccessLog log)
public void addErrorPage(ErrorPage errorPage)
public ErrorPageManager getErrorPageManager()
public void setConfigException(java.lang.Throwable e)
public DeployContainer<WebAppController> getWebAppGenerator()
public SessionManager getSessionManager()
public RewriteDispatch createRewriteDispatch()
public boolean isModified()
public void addWebApp(WebAppConfig config)
throws java.lang.Exception
java.lang.Exceptionpublic void addWebAppDefault(WebAppConfig init)
public java.util.ArrayList<WebAppConfig> getWebAppDefaultList()
public WebAppExpandDeployGenerator createWarDeploy()
public WebAppExpandDeployGenerator createWebAppDeploy()
public void addWebAppDeploy(WebAppExpandDeployGenerator deploy)
throws ConfigException
ConfigException
public void addWarDeploy(WebAppExpandDeployGenerator webAppDeploy)
throws ConfigException
ConfigException
public void addDeploy(DeployGenerator deploy)
throws ConfigException
ConfigExceptionpublic void removeWebAppDeploy(DeployGenerator deploy)
public void updateWebAppDeploy(java.lang.String name)
throws java.lang.Throwable
java.lang.Throwablepublic void addApplication(EarConfig config)
public void updateEarDeploy(java.lang.String name)
throws java.lang.Throwable
java.lang.Throwablepublic void expandEarDeploy(java.lang.String name)
public void startEarDeploy(java.lang.String name)
public void addEarDefault(EarConfig config)
public java.util.ArrayList<EarConfig> getEarDefaultList()
public EarDeployGenerator createEarDeploy()
throws java.lang.Exception
java.lang.Exception
public void addEarDeploy(EarDeployGenerator earDeploy)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getURL()
public java.lang.String getHostName()
public void setWarDir(Path warDir)
throws ConfigException
ConfigExceptionpublic Path getWarDir()
public void setWarExpandDir(Path warDir)
public Path getWarExpandDir()
public void init()
throws java.lang.Exception
java.lang.Exceptionprotected void start()
public void clearCache()
public Invocation buildInvocation(Invocation invocation)
throws java.lang.Exception
buildInvocation in interface DispatchBuilderjava.lang.Exceptionpublic RequestDispatcher getRequestDispatcher(java.lang.String url)
public void buildIncludeInvocation(Invocation invocation)
throws ServletException
ServletException
public void buildForwardInvocation(Invocation invocation)
throws ServletException
ServletException
public void buildErrorInvocation(Invocation invocation)
throws ServletException
ServletException
public void buildLoginInvocation(Invocation invocation)
throws ServletException
ServletException
public WebApp findWebAppByURI(java.lang.String uri)
throws java.lang.Exception
java.lang.Exception
public WebApp findSubWebAppByURI(java.lang.String uri)
throws java.lang.Exception
java.lang.Exceptionpublic WebAppController findByURI(java.lang.String uri)
public WebAppController findController(java.lang.String subURI)
public java.util.ArrayList<WebAppController> getWebAppList()
public java.util.ArrayList<EarDeployController> getEntAppList()
public final boolean isDestroyed()
public final boolean isActive()
public boolean stop()
public void destroy()
public WebApp getErrorWebApp()
public void classLoaderInit(DynamicClassLoader loader)
classLoaderInit in interface ClassLoaderListenerpublic void classLoaderDestroy(DynamicClassLoader loader)
classLoaderDestroy in interface ClassLoaderListenerpublic void environmentStart(EnvironmentClassLoader loader)
environmentStart in interface EnvironmentListenerpublic void environmentStop(EnvironmentClassLoader loader)
environmentStop in interface EnvironmentListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||