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


org.objectweb.jonas.web.JWebContainerService

All known Subclasses:   org.objectweb.jonas.web.AbsJWebContainerServiceImpl,
JWebContainerService
public interface JWebContainerService extends Service(Code)
JOnAS WEB Container Service interface. This interface provides a description of a web container service.
author:
   Ludovic Bert
author:
   Florent Benoit




Method Summary
 voiddeployWars(Context ctx)
     Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader).
 URLClassLoadergetClassLoader(URL warURL, String earAppName, ClassLoader ejbClassLoader)
     Return the class loader of the given warURL.
 ClassLoadergetContextLinkedClassLoader(URL warURL)
    
 StringgetDefaultHost()
     Return the Default host name of the web container.
 StringgetDefaultHttpPort()
     Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set).
 StringgetDefaultHttpsPort()
     Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set).
 WargetWar(URL url)
     Get the war identified by its URL (.war).
Parameters:
  url - the URL of the war to get.
 StringgetWebappsDirectory()
     Return the WebApps directory.
 booleanisWarLoaded(String fileName)
     Test if the specified filename is already deployed or not
Parameters:
  fileName - the name of the war file.
 voidregisterWarMBean(String fileName)
     Register a WAR by delegating the operation to the registerWar() method.
 voidremoveCache(ClassLoader earClassLoader)
     Make a cleanup of the cache of deployment descriptor.
 voidunDeployWars(URL[] urls)
     Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader).
 voidunRegisterWarMBean(String fileName)
     Unregister a WAR by delegating the operation to the unRegisterWar() method.



Method Detail
deployWars
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.



getClassLoader
URLClassLoader getClassLoader(URL warURL, String earAppName, ClassLoader ejbClassLoader) 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:
  ejbClassLoader - 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
ClassLoader getContextLinkedClassLoader(URL warURL)(Code)

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



getDefaultHost
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
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
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.



getWar
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.



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



isWarLoaded
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
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
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. the deployment of an ear by .
Parameters:
  earClassLoader - the ClassLoader of the ear application toremove from the cache.



unDeployWars
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
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.



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