Java Doc for CatalinaJWebContainerServiceWrapper.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » web » wrapper » catalina55 » 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 » J2EE » JOnAS 4.8.6 » org.objectweb.jonas.web.wrapper.catalina55 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas.web.wrapper.catalina55.CatalinaJWebContainerServiceWrapper

CatalinaJWebContainerServiceWrapper
public class CatalinaJWebContainerServiceWrapper implements CatalinaJWebContainerService,AbsJWebContainerServiceImplMBean(Code)
Wrap the Catalina 5.0 Web Container Service because Catalina use Digester to parse its server.xml
author:
   Guillaume Sauthier



Constructor Summary
public  CatalinaJWebContainerServiceWrapper()
     Construct the instance and init the service.

Method Summary
public  voiddeployWars(Context ctx)
     Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader).
public  ListgetAutoloadDirectories()
     Return the list of "autoload" directories for web applications.
public  URLClassLoadergetClassLoader(URL warURL, String earAppName, ClassLoader parentLoader)
     Return the class loader of the given warURL.
public  ClassLoadergetContextLinkedClassLoader(URL url)
    
public  IntegergetCurrentNumberOfWars()
    
public  StringgetDefaultHost()
     Return the Default host name of the web container.
public  StringgetDefaultHttpPort()
     Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set).
public  StringgetDefaultHttpsPort()
     Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set).
public  ListgetDeployableWars()
     Return the list of installed web applications ready to deploy.
public  ListgetDeployedWars()
     Return the list of all loaded web applications.
public  ListgetInstalledWars()
     Return the list of installed web applications.
public  StringgetName()
    
public  StringgetServerName()
    
public  StringgetServerVersion()
    
public  WargetWar(URL url)
     Get the war identified by its URL (.war).
Parameters:
  url - the URL of the war to get.
public  SetgetWarNames()
     This method is added temporarily.
public  StringgetWebappsDirectory()
     Return the WebApps directory.
public  voidinit(Context ctx)
     Initialize the Catalina service.
public  booleanisStarted()
    
public  booleanisTomcatStarted()
    
public  booleanisWarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the war file.
public  voidregisterWarMBean(String fileName)
     Register a WAR by delegating the operation to the registerWar() method.
public  voidremoveCache(ClassLoader earClassLoader)
     Make a cleanup of the cache of deployment descriptor.
public  voidsetName(String name)
    
public  voidstart()
    
public  voidstop()
     Stop the Catalina service.
public  voidunDeployWars(URL[] urls)
     Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader).
public  voidunRegisterWarMBean(String fileName)
     Unregister a WAR by delegating the operation to the unRegisterWar() method.


Constructor Detail
CatalinaJWebContainerServiceWrapper
public CatalinaJWebContainerServiceWrapper() throws ServiceException(Code)
Construct the instance and init the service.
throws:
  ServiceException - when Catalina Loader cannot be found




Method Detail
deployWars
public void deployWars(Context ctx) throws JWebContainerServiceException(Code)
Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). (This method is only used for the ear applications, not for the web applications).
Parameters:
  ctx - the context containing the configurationto deploy the wars.
This context contains the following parameters :
- urls the list of the urls of the wars to deploy.
- earURL the URL of the ear application file.
- parentClassLoader the parent classLoader of the wars.
- earClassLoader the ear classLoader of the j2ee app.
- altDDs the optional URI of deployment descriptor.
- contextRoots the optional context root of the wars.

throws:
  JWebContainerServiceException - if an error occurs duringthe deployment.



getAutoloadDirectories
public List getAutoloadDirectories()(Code)
Return the list of "autoload" directories for web applications. The list of all "autoload" directories



getClassLoader
public URLClassLoader getClassLoader(URL warURL, String earAppName, ClassLoader parentLoader) throws JWebContainerServiceException(Code)
Return the class loader of the given warURL. Unpack the associated war and build the loader if it's not in the cache.
Parameters:
  warURL - the url of the war we want to get the loader
Parameters:
  earAppName - the name of the ear application containingthe war. May be null in non ear case.
Parameters:
  parentLoader - the ejb class loader of the ear.May be null in non ear case. the class loader of the given warURL.
throws:
  JWebContainerServiceException - if the process failed.



getContextLinkedClassLoader
public ClassLoader getContextLinkedClassLoader(URL url)(Code)

Parameters:
  url - the URL of the webapp Returns the ClassLoader used to link a JNDI environnment to a webapp



getCurrentNumberOfWars
public Integer getCurrentNumberOfWars()(Code)
current number of wars deployed in the JOnAS server



getDefaultHost
public String getDefaultHost() throws JWebContainerServiceException(Code)
Return the Default host name of the web container. the Default host name of the web container.
throws:
  JWebContainerServiceException - when it is impossible to get the Default Host.



getDefaultHttpPort
public String getDefaultHttpPort() throws JWebContainerServiceException(Code)
Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set). the Default HTTP port number of the web container.
throws:
  JWebContainerServiceException - when it is impossible to get the Default Http port.



getDefaultHttpsPort
public String getDefaultHttpsPort() throws JWebContainerServiceException(Code)
Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set). the Default HTTPS port number of the web container.
throws:
  JWebContainerServiceException - when it is impossible to get the Default Https port.



getDeployableWars
public List getDeployableWars() throws Exception(Code)
Return the list of installed web applications ready to deploy. The list of deployable web applications
throws:
  Exception - if the list can't be retrieved



getDeployedWars
public List getDeployedWars()(Code)
Return the list of all loaded web applications. The list of deployed web applications



getInstalledWars
public List getInstalledWars() throws Exception(Code)
Return the list of installed web applications. The WAR files or the directories with expanded web application are searched in JONAS_BASE/webapps and all webapps directories 'autoload'. The list of WAR files or the directories with expanded web application found
throws:
  Exception - if the list can't be retrieved



getName
public String getName()(Code)
the service's name



getServerName
public String getServerName()(Code)
Gets the name of the server which is the web container the name of the server which is the web container



getServerVersion
public String getServerVersion()(Code)
Gets the version of the server which is the web container the version of the server which is the web container



getWar
public War getWar(URL url)(Code)
Get the war identified by its URL (.war).
Parameters:
  url - the URL of the war to get. the war indentified by its URL, or null if the war is not found.



getWarNames
public Set getWarNames()(Code)
This method is added temporarily. It will disapear when Wars will have their associated MBeans (when Wars will become manageable) the names of the wars currently deployed in the JOnAS server



getWebappsDirectory
public String getWebappsDirectory()(Code)
Return the WebApps directory. The WebApps directory



init
public void init(Context ctx) throws ServiceException(Code)
Initialize the Catalina service.
Parameters:
  ctx - the configuration context of the service.
throws:
  ServiceException - if the initialization failed.
See Also:   org.objectweb.jonas.service.Service.init(javax.naming.Context)



isStarted
public boolean isStarted()(Code)
true if the service is started, false otherwise



isTomcatStarted
public boolean isTomcatStarted()(Code)
The server is started ? boolean true if the catalina container is running.



isWarLoaded
public boolean isWarLoaded(String fileName)(Code)
Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the war file. true if the war is deployed, else false.



registerWarMBean
public void registerWarMBean(String fileName) throws RemoteException, JWebContainerServiceException(Code)
Register a WAR by delegating the operation to the registerWar() method. This is used for JMX management.
Parameters:
  fileName - the name of the war to deploy.
throws:
  RemoteException - if rmi call failed.
throws:
  JWebContainerServiceException - if the registration failed.



removeCache
public void removeCache(ClassLoader earClassLoader)(Code)
Make a cleanup of the cache of deployment descriptor. This method must be invoked after the ear deployment by the EAR service.
Parameters:
  earClassLoader - the ClassLoader of the ear application toremove from the cache.



setName
public void setName(String name)(Code)
Set the service's name
Parameters:
  name - to set



start
public void start() throws ServiceException(Code)
Start the Catalina service in a new thread
throws:
  ServiceException - if the startup failed.
See Also:   org.objectweb.jonas.service.Service.start



stop
public void stop() throws ServiceException(Code)
Stop the Catalina service.
throws:
  ServiceException - if the stop failed.
See Also:   org.objectweb.jonas.service.Service.stop



unDeployWars
public void unDeployWars(URL[] urls)(Code)
Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). (This method is only used for the ear applications, not for the war applications).
Parameters:
  urls - the list of the urls of the wars to undeploy.



unRegisterWarMBean
public void unRegisterWarMBean(String fileName) throws RemoteException, JWebContainerServiceException(Code)
Unregister a WAR by delegating the operation to the unRegisterWar() method. This is used for JMX management.
Parameters:
  fileName - the name of the war to undeploy.
throws:
  RemoteException - if rmi call failed.
throws:
  JWebContainerServiceException - if the unregistration failed.



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.