Java Doc for WebAppContainer.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » webapp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.server.webapp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.webapp.WebAppContainer

All known Subclasses:   com.caucho.server.host.Host,
WebAppContainer
public class WebAppContainer implements DispatchBuilder,ClassLoaderListener,EnvironmentListener(Code)
Resin's webApp implementation.


Field Summary
final static  L10NL
    
final static  Loggerlog
    

Constructor Summary
public  WebAppContainer()
     Creates the webApp with its environment loader.
public  WebAppContainer(EnvironmentClassLoader loader)
     Creates the webApp with its environment loader.

Method Summary
public  voidaddApplication(EarConfig config)
     Adds an enterprise webApp.
public  voidaddDeploy(DeployGenerator deploy)
    
public  voidaddEarDefault(EarConfig config)
    
public  voidaddEarDeploy(EarDeployGenerator earDeploy)
    
public  voidaddErrorPage(ErrorPage errorPage)
    
public  voidaddWarDeploy(WebAppExpandDeployGenerator webAppDeploy)
    
public  voidaddWebApp(WebAppConfig config)
     Adds an webApp.
public  voidaddWebAppDefault(WebAppConfig init)
    
public  voidaddWebAppDeploy(WebAppExpandDeployGenerator deploy)
    
public  voidbuildErrorInvocation(Invocation invocation)
     Creates the error invocation.
public  voidbuildForwardInvocation(Invocation invocation)
     Creates the invocation.
public  voidbuildIncludeInvocation(Invocation invocation)
     Creates the invocation.
public  InvocationbuildInvocation(Invocation invocation)
     Creates the invocation.
public  voidbuildLoginInvocation(Invocation invocation)
     Creates the invocation.
public  voidclassLoaderDestroy(DynamicClassLoader loader)
     Handles the case where a class loader is dropped.
public  voidclassLoaderInit(DynamicClassLoader loader)
    
public  voidclearCache()
    
public  AbstractAccessLogcreateAccessLog()
     Sets the access log.
public  EarDeployGeneratorcreateEarDeploy()
    
public  RewriteDispatchcreateRewriteDispatch()
     Adds rewrite-dispatch.
public  WebAppExpandDeployGeneratorcreateWarDeploy()
    
public  WebAppExpandDeployGeneratorcreateWebAppDeploy()
    
public  voiddestroy()
     Closes the container.
public  voidenvironmentConfig(EnvironmentClassLoader loader)
    
public  voidenvironmentStart(EnvironmentClassLoader loader)
     Handles the case where the environment is starting (after init).
public  voidenvironmentStop(EnvironmentClassLoader loader)
    
public  voidexpandEarDeploy(String name)
    
public  WebAppControllerfindByURI(String uri)
     Finds the web-app matching the current entry.
public  WebAppControllerfindController(String subURI)
     Finds the web-app for the entry, not checking for sub-apps.
public  WebAppfindSubWebAppByURI(String uri)
     Creates the invocation.
public  WebAppfindWebAppByURI(String uri)
     Creates the invocation.
public  ClassLoadergetClassLoader()
     Gets the class loader.
public  DispatchServergetDispatchServer()
     Gets the dispatch server.
public  PathgetDocumentDirectory()
     Gets the document directory.
public  ArrayList<EarConfig>getEarDefaultList()
    
public  ArrayList<EarDeployController>getEntAppList()
     Returns a list of the webApps.
public  ErrorPageManagergetErrorPageManager()
    
public  WebAppgetErrorWebApp()
     Returns the error webApp during startup.
public  HostgetHost()
     Returns the owning host.
public  StringgetHostName()
     Returns the host name for the container.
public  RequestDispatchergetRequestDispatcher(String url)
     Returns a dispatcher for the named servlet.
public  PathgetRootDirectory()
     Gets the root directory.
public  SessionManagergetSessionManager()
     Returns the container's session manager.
public  StringgetURL()
     Returns the URL for the container.
public  PathgetWarDir()
     Gets the war-dir.
public  PathgetWarExpandDir()
     Gets the war-expand-dir.
public  ArrayList<WebAppConfig>getWebAppDefaultList()
    
public  DeployContainer<WebAppController>getWebAppGenerator()
    
public  ArrayList<WebAppController>getWebAppList()
     Returns a list of the webApps.
public  voidinit()
     Init the container.
final public  booleanisActive()
    
final public  booleanisDestroyed()
     Returns true if the webApp container has been closed.
public  booleanisModified()
     Returns true if modified.
 voidremoveWebApp(WebAppController entry)
     Removes an webApp.
public  voidremoveWebAppDeploy(DeployGenerator deploy)
     Removes a web-app-generator.
public  voidsetAccessLog(AbstractAccessLog log)
     Sets the access log.
public  voidsetConfigException(Throwable e)
     Sets a configuration exception.
public  voidsetDispatchServer(DispatchServer server)
     Sets the dispatch server.
public  voidsetDocDir(Path path)
     Sets the document directory.
public  voidsetDocumentDirectory(Path path)
     Sets the document directory.
public  voidsetEnvironmentClassLoader(EnvironmentClassLoader loader)
     sets the class loader.
public  voidsetRootDirectory(Path path)
     Sets the root directory.
public  voidsetWarDir(Path warDir)
     Sets the war-dir for backwards compatibility.
public  voidsetWarExpandDir(Path warDir)
     Sets the war-expand-dir.
protected  voidstart()
     Starts the container.
public  voidstartEarDeploy(String name)
    
public  booleanstop()
     Closes the container.
public  voidupdateEarDeploy(String name)
    
public  voidupdateWebAppDeploy(String name)
    

Field Detail
L
final static L10N L(Code)



log
final static Logger log(Code)




Constructor Detail
WebAppContainer
public WebAppContainer()(Code)
Creates the webApp with its environment loader.



WebAppContainer
public WebAppContainer(EnvironmentClassLoader loader)(Code)
Creates the webApp with its environment loader.




Method Detail
addApplication
public void addApplication(EarConfig config)(Code)
Adds an enterprise webApp.



addDeploy
public void addDeploy(DeployGenerator deploy) throws ConfigException(Code)
Sets the war-expansion



addEarDefault
public void addEarDefault(EarConfig config)(Code)
Adds an ear default



addEarDeploy
public void addEarDeploy(EarDeployGenerator earDeploy) throws Exception(Code)
Adds the ear-expansion



addErrorPage
public void addErrorPage(ErrorPage errorPage)(Code)
Adds an error page



addWarDeploy
public void addWarDeploy(WebAppExpandDeployGenerator webAppDeploy) throws ConfigException(Code)
Sets the war-expansion



addWebApp
public void addWebApp(WebAppConfig config) throws Exception(Code)
Adds an webApp.



addWebAppDefault
public void addWebAppDefault(WebAppConfig init)(Code)
Adds a web-app default



addWebAppDeploy
public void addWebAppDeploy(WebAppExpandDeployGenerator deploy) throws ConfigException(Code)
Sets the war-expansion



buildErrorInvocation
public void buildErrorInvocation(Invocation invocation) throws ServletException(Code)
Creates the error invocation.



buildForwardInvocation
public void buildForwardInvocation(Invocation invocation) throws ServletException(Code)
Creates the invocation.



buildIncludeInvocation
public void buildIncludeInvocation(Invocation invocation) throws ServletException(Code)
Creates the invocation.



buildInvocation
public Invocation buildInvocation(Invocation invocation) throws Exception(Code)
Creates the invocation.



buildLoginInvocation
public void buildLoginInvocation(Invocation invocation) throws ServletException(Code)
Creates the invocation.



classLoaderDestroy
public void classLoaderDestroy(DynamicClassLoader loader)(Code)
Handles the case where a class loader is dropped.



classLoaderInit
public void classLoaderInit(DynamicClassLoader loader)(Code)
Handles the case where a class loader has completed initialization



clearCache
public void clearCache()(Code)
Clears the cache



createAccessLog
public AbstractAccessLog createAccessLog()(Code)
Sets the access log.



createEarDeploy
public EarDeployGenerator createEarDeploy() throws Exception(Code)
Sets the ear-expansion



createRewriteDispatch
public RewriteDispatch createRewriteDispatch()(Code)
Adds rewrite-dispatch.



createWarDeploy
public WebAppExpandDeployGenerator createWarDeploy()(Code)
Sets the war-expansion



createWebAppDeploy
public WebAppExpandDeployGenerator createWebAppDeploy()(Code)
Sets the war-expansion



destroy
public void destroy()(Code)
Closes the container.



environmentConfig
public void environmentConfig(EnvironmentClassLoader loader)(Code)
Handles the environment config phase



environmentStart
public void environmentStart(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is starting (after init).



environmentStop
public void environmentStop(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is stopping



expandEarDeploy
public void expandEarDeploy(String name)(Code)
Updates an ear deploy



findByURI
public WebAppController findByURI(String uri)(Code)
Finds the web-app matching the current entry.



findController
public WebAppController findController(String subURI)(Code)
Finds the web-app for the entry, not checking for sub-apps. (used by LocalDeployServlet)



findSubWebAppByURI
public WebApp findSubWebAppByURI(String uri) throws Exception(Code)
Creates the invocation.



findWebAppByURI
public WebApp findWebAppByURI(String uri) throws Exception(Code)
Creates the invocation.



getClassLoader
public ClassLoader getClassLoader()(Code)
Gets the class loader.



getDispatchServer
public DispatchServer getDispatchServer()(Code)
Gets the dispatch server.



getDocumentDirectory
public Path getDocumentDirectory()(Code)
Gets the document directory.



getEarDefaultList
public ArrayList<EarConfig> getEarDefaultList()(Code)
Returns the list of ear defaults



getEntAppList
public ArrayList<EarDeployController> getEntAppList()(Code)
Returns a list of the webApps.



getErrorPageManager
public ErrorPageManager getErrorPageManager()(Code)
Returns the error page manager



getErrorWebApp
public WebApp getErrorWebApp()(Code)
Returns the error webApp during startup.



getHost
public Host getHost()(Code)
Returns the owning host.



getHostName
public String getHostName()(Code)
Returns the host name for the container.



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String url)(Code)
Returns a dispatcher for the named servlet.



getRootDirectory
public Path getRootDirectory()(Code)
Gets the root directory.



getSessionManager
public SessionManager getSessionManager()(Code)
Returns the container's session manager.



getURL
public String getURL()(Code)
Returns the URL for the container.



getWarDir
public Path getWarDir()(Code)
Gets the war-dir.



getWarExpandDir
public Path getWarExpandDir()(Code)
Gets the war-expand-dir.



getWebAppDefaultList
public ArrayList<WebAppConfig> getWebAppDefaultList()(Code)
Returns the list of web-app defaults



getWebAppGenerator
public DeployContainer<WebAppController> getWebAppGenerator()(Code)
Returns the webApp generator



getWebAppList
public ArrayList<WebAppController> getWebAppList()(Code)
Returns a list of the webApps.



init
public void init() throws Exception(Code)
Init the container.



isActive
final public boolean isActive()(Code)
Returns true if the webApp container is active



isDestroyed
final public boolean isDestroyed()(Code)
Returns true if the webApp container has been closed.



isModified
public boolean isModified()(Code)
Returns true if modified.



removeWebApp
void removeWebApp(WebAppController entry)(Code)
Removes an webApp.



removeWebAppDeploy
public void removeWebAppDeploy(DeployGenerator deploy)(Code)
Removes a web-app-generator.



setAccessLog
public void setAccessLog(AbstractAccessLog log)(Code)
Sets the access log.



setConfigException
public void setConfigException(Throwable e)(Code)
Sets a configuration exception.



setDispatchServer
public void setDispatchServer(DispatchServer server)(Code)
Sets the dispatch server.



setDocDir
public void setDocDir(Path path)(Code)
Sets the document directory.



setDocumentDirectory
public void setDocumentDirectory(Path path)(Code)
Sets the document directory.



setEnvironmentClassLoader
public void setEnvironmentClassLoader(EnvironmentClassLoader loader)(Code)
sets the class loader.



setRootDirectory
public void setRootDirectory(Path path)(Code)
Sets the root directory.



setWarDir
public void setWarDir(Path warDir) throws ConfigException(Code)
Sets the war-dir for backwards compatibility.



setWarExpandDir
public void setWarExpandDir(Path warDir)(Code)
Sets the war-expand-dir.



start
protected void start()(Code)
Starts the container.



startEarDeploy
public void startEarDeploy(String name)(Code)
Start an ear



stop
public boolean stop()(Code)
Closes the container.



updateEarDeploy
public void updateEarDeploy(String name) throws Throwable(Code)
Updates an ear deploy



updateWebAppDeploy
public void updateWebAppDeploy(String name) throws Throwable(Code)
Updates a WebApp deploy



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.