Java Doc for AbstractWebContainer.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » web » 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 JBoss 4.2.1 » server » org.jboss.web 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.web.AbstractWebContainer

AbstractWebContainer
abstract public class AbstractWebContainer extends SubDeployerSupport implements AbstractWebContainerMBean(Code)
A template pattern class for web container integration into JBoss. This class should be subclasses by web container providers wishing to integrate their container into a JBoss server.
See Also:   org.jboss.web.AbstractWebDeployer
author:
   Scott.Stark@jboss.org
author:
   Christoph.Jung@infor.de
author:
   Thomas.Diesler@arcor.de
version:
   $Revision: 57209 $

Inner Class :public static interface WebDescriptorParser

Field Summary
final public static  StringDEPLOYER
    
final public static  StringERROR
    
final public static  StringWEB_APP
    
final public static  StringWEB_MODULE
    
protected  booleanacceptNonWarDirs
    
protected  StringdefaultSecurityDomain
    
protected  HashMapdeploymentMap
    
protected  booleanjava2ClassLoadingCompliance
    
protected  booleanlenientEjbLink
    
protected  ServiceControllerMBeanserviceController
    
protected  booleanunpackWars
    

Constructor Summary
public  AbstractWebContainer()
    

Method Summary
public  booleanaccepts(DeploymentInfo sdi)
    
public  voidaddDeployedApp(URL warURL, WebApplication webApp)
    
public  voidcreate(DeploymentInfo di)
     Create a WebModule service, register it under the name "jboss.web.deployment:war="+di.shortName and invoke the ServiceController.create(jmxname, depends) using the depends found in the WebMetaData.
public synchronized  voiddestroy(DeploymentInfo di)
     Invokes the ServiceController.destroy(jmxName) to destroy the WebModule and its dependents.
public  booleangetAcceptNonWarDirs()
    
public static  URL[]getClassLoaderURLs(ClassLoader cl)
     Use reflection to access a URL[] getURLs method so that non-URLClassLoader class loaders that support this method can provide info.
public  String[]getCompileClasspath(ClassLoader loader)
     A utility method that walks up the ClassLoader chain starting at the given loader and queries each ClassLoader for a 'URL[] getURLs()' method from which a complete classpath of URL strings is built.
public  ElementgetConfig()
     An accessor for any configuration element set via setConfig.
public  StringgetDefaultSecurityDomain()
     Get the default security domain implementation to use if a war does not declare a security-domain.
public  WebApplicationgetDeployedApp(String warUrl)
     Get the WebApplication object for a deployed war.
Parameters:
  warUrl - the war url string as originally passed to deploy().
public  IteratorgetDeployedApplications()
     Returns the applications deployed by the web container subclasses.
abstract public  AbstractWebDeployergetDeployer(DeploymentInfo di)
    
public  booleangetJava2ClassLoadingCompliance()
     Get the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model.
public  booleangetLenientEjbLink()
    
public  StringgetSubjectAttributeName()
    
public  booleangetUnpackWars()
     Set the flag indicating if war archives should be unpacked.
public synchronized  voidinit(DeploymentInfo di)
    
public  booleanisDeployed(String warUrl)
     See if a war is deployed.
protected  voidparseMetaData(String ctxPath, URL warURL, String warName, WebMetaData metaData)
     This method creates a context-root string from either the WEB-INF/jboss-web.xml context-root element is one exists, or the filename portion of the warURL.
protected  voidprocessNestedDeployments(DeploymentInfo di)
    
public  WebApplicationremoveDeployedApp(URL warURL)
    
public  voidsetAcceptNonWarDirs(boolean flag)
    
public  voidsetConfig(Element config)
     This method is invoked to import an arbitrary XML configuration tree. Subclasses should override this method if they support such a configuration capability.
public  voidsetDefaultSecurityDomain(String defaultSecurityDomain)
     Set the default security domain implementation to use if a war does not declare a security-domain.
public  voidsetJava2ClassLoadingCompliance(boolean flag)
     Set the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model.
public  voidsetLenientEjbLink(boolean flag)
    
public  voidsetSubjectAttributeName(String subjectAttributeName)
    
public  voidsetUnpackWars(boolean flag)
     Get the flag indicating if war archives should be unpacked.
public synchronized  voidstart(DeploymentInfo di)
     Invokes the ServiceController.start(jmxName) to start the WebModule after its dependencies are satisfied.
protected  voidstartService()
    
public synchronized  voidstop(DeploymentInfo di)
     Invokes the ServiceController.start(jmxName) to stop the WebModule and its dependents.

Field Detail
DEPLOYER
final public static String DEPLOYER(Code)



ERROR
final public static String ERROR(Code)



WEB_APP
final public static String WEB_APP(Code)



WEB_MODULE
final public static String WEB_MODULE(Code)



acceptNonWarDirs
protected boolean acceptNonWarDirs(Code)
A flag indicating if local dirs with WEB-INF/web.xml should be treated as wars



defaultSecurityDomain
protected String defaultSecurityDomain(Code)
The default security-domain name to use



deploymentMap
protected HashMap deploymentMap(Code)
A mapping of deployed warUrl strings to the WebApplication object



java2ClassLoadingCompliance
protected boolean java2ClassLoadingCompliance(Code)
The parent class loader first model flag



lenientEjbLink
protected boolean lenientEjbLink(Code)
If true, ejb-links that don't resolve don't cause an error (fallback to jndi-name)



serviceController
protected ServiceControllerMBean serviceController(Code)
The ServiceController used to control web app startup dependencies



unpackWars
protected boolean unpackWars(Code)
A flag indicating if war archives should be unpacked




Constructor Detail
AbstractWebContainer
public AbstractWebContainer()(Code)




Method Detail
accepts
public boolean accepts(DeploymentInfo sdi)(Code)



addDeployedApp
public void addDeployedApp(URL warURL, WebApplication webApp)(Code)



create
public void create(DeploymentInfo di) throws DeploymentException(Code)
Create a WebModule service, register it under the name "jboss.web.deployment:war="+di.shortName and invoke the ServiceController.create(jmxname, depends) using the depends found in the WebMetaData.
Parameters:
  di - - The deployment info for the war
throws:
  DeploymentException -



destroy
public synchronized void destroy(DeploymentInfo di) throws DeploymentException(Code)
Invokes the ServiceController.destroy(jmxName) to destroy the WebModule and its dependents.
Parameters:
  di - - The deployment info for the war
throws:
  DeploymentException -



getAcceptNonWarDirs
public boolean getAcceptNonWarDirs()(Code)
Get the flag indicating if local dirs with WEB-INF/web.xml should be treated as wars true if local dirs with WEB-INF/web.xml should be treated as wars



getClassLoaderURLs
public static URL[] getClassLoaderURLs(ClassLoader cl)(Code)
Use reflection to access a URL[] getURLs method so that non-URLClassLoader class loaders that support this method can provide info.



getCompileClasspath
public String[] getCompileClasspath(ClassLoader loader)(Code)
A utility method that walks up the ClassLoader chain starting at the given loader and queries each ClassLoader for a 'URL[] getURLs()' method from which a complete classpath of URL strings is built.



getConfig
public Element getConfig()(Code)
An accessor for any configuration element set via setConfig. This method always returns null and must be overriden by subclasses to return a valid value.



getDefaultSecurityDomain
public String getDefaultSecurityDomain()(Code)
Get the default security domain implementation to use if a war does not declare a security-domain. jndi name of the security domain binding to use.



getDeployedApp
public WebApplication getDeployedApp(String warUrl)(Code)
Get the WebApplication object for a deployed war.
Parameters:
  warUrl - the war url string as originally passed to deploy(). The WebApplication created during the deploy step if thewarUrl is valid, null if no such deployment exists.



getDeployedApplications
public Iterator getDeployedApplications()(Code)
Returns the applications deployed by the web container subclasses. An Iterator of WebApplication objects for the deployed wars.



getDeployer
abstract public AbstractWebDeployer getDeployer(DeploymentInfo di) throws Exception(Code)



getJava2ClassLoadingCompliance
public boolean getJava2ClassLoadingCompliance()(Code)
Get the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model. true for parent first, false for the servlet 2.3 model



getLenientEjbLink
public boolean getLenientEjbLink()(Code)
Get the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml the LenientEjbLink flag



getSubjectAttributeName
public String getSubjectAttributeName()(Code)
Get the session attribute number under which the caller Subject is stored



getUnpackWars
public boolean getUnpackWars()(Code)
Set the flag indicating if war archives should be unpacked. This may need to be set to false as long extraction paths under deploy can show up as deployment failures on some platforms. true is war archives should be unpacked



init
public synchronized void init(DeploymentInfo di) throws DeploymentException(Code)



isDeployed
public boolean isDeployed(String warUrl)(Code)
See if a war is deployed.



parseMetaData
protected void parseMetaData(String ctxPath, URL warURL, String warName, WebMetaData metaData) throws DeploymentException(Code)
This method creates a context-root string from either the WEB-INF/jboss-web.xml context-root element is one exists, or the filename portion of the warURL. It is called if the DeploymentInfo webContext value is null which indicates a standalone war deployment. A war name of ROOT.war is handled as a special case of a war that should be installed as the default web context.



processNestedDeployments
protected void processNestedDeployments(DeploymentInfo di) throws DeploymentException(Code)
WARs do not have nested deployments
Parameters:
  di -



removeDeployedApp
public WebApplication removeDeployedApp(URL warURL)(Code)



setAcceptNonWarDirs
public void setAcceptNonWarDirs(boolean flag)(Code)
Set the flag indicating if local dirs with WEB-INF/web.xml should be treated as wars
Parameters:
  flag - - true if local dirs with WEB-INF/web.xml should be treated as wars



setConfig
public void setConfig(Element config)(Code)
This method is invoked to import an arbitrary XML configuration tree. Subclasses should override this method if they support such a configuration capability. This implementation does nothing.



setDefaultSecurityDomain
public void setDefaultSecurityDomain(String defaultSecurityDomain)(Code)
Set the default security domain implementation to use if a war does not declare a security-domain.
Parameters:
  defaultSecurityDomain - - jndi name of the security domain bindingto use.



setJava2ClassLoadingCompliance
public void setJava2ClassLoadingCompliance(boolean flag)(Code)
Set the flag indicating if the normal Java2 parent first class loading model should be used over the servlet 2.3 web container first model.
Parameters:
  flag - true for parent first, false for the servlet 2.3 model



setLenientEjbLink
public void setLenientEjbLink(boolean flag)(Code)
Set the flag indicating if ejb-link errors should be ignored in favour of trying the jndi-name in jboss-web.xml



setSubjectAttributeName
public void setSubjectAttributeName(String subjectAttributeName)(Code)
Set the session attribute number under which the caller Subject is stored



setUnpackWars
public void setUnpackWars(boolean flag)(Code)
Get the flag indicating if war archives should be unpacked. This may need to be set to false as long extraction paths under deploy can show up as deployment failures on some platforms.
Parameters:
  flag - , true is war archives should be unpacked



start
public synchronized void start(DeploymentInfo di) throws DeploymentException(Code)
Invokes the ServiceController.start(jmxName) to start the WebModule after its dependencies are satisfied.
Parameters:
  di - - The deployment info for the war
throws:
  DeploymentException -



startService
protected void startService() throws Exception(Code)



stop
public synchronized void stop(DeploymentInfo di) throws DeploymentException(Code)
Invokes the ServiceController.start(jmxName) to stop the WebModule and its dependents.
Parameters:
  di - - The deployment info for the war
throws:
  DeploymentException -



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