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


org.objectweb.jonas.web.AbsJWebContainerServiceImpl
   org.objectweb.jonas.web.catalina55.CatalinaJWebContainerServiceImpl

CatalinaJWebContainerServiceImpl
public class CatalinaJWebContainerServiceImpl extends AbsJWebContainerServiceImpl implements CatalinaJWebContainerService(Code)
This class provides an implementation of the Catalina service (as web container service).
author:
   Florent Benoit
author:
   Ludovic Bert (Tomcat 4.0)


Field Summary
final protected static  StringCONFIG_FILE
    


Method Summary
protected  voidcheckStartedContext(Context context, PermissionManager permissionManager)
    
protected  DigestercreateServerDigester()
     Create and configure the Digester that will be used for the xml parsing of the configuration file.
protected  voiddoInit(javax.naming.Context ctx)
     Initialize the Catalina service.
protected  voiddoRegisterWar(javax.naming.Context ctx)
     Deploy a specific WAR file specified in the context.
public  voiddoStart()
    
protected  voiddoStop()
     Stop the Catalina service.
protected  voiddoUnRegisterWar(javax.naming.Context ctx)
     Undeploy a specific WAR file specified in the context.
public  HostfindHost(String hostName)
     Find the specified host.
Parameters:
  hostName - the name of the host to find.
protected  FilegetConfigFile()
     Return a File object representing the server.xml configuration file.
protected  ListgetConfiguredMatchingJonasContexts(String contextRoot, File fpackedWar, String destDir)
    
protected synchronized  ListgetContexts()
    
public  StringgetDefaultHost()
     Return the Default host name of the web container.
public  StringgetDefaultHttpPort()
     Return the Default HTTP port number of the web container.
public  StringgetDefaultHttpsPort()
     Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set).
protected synchronized  ListgetEngines()
    
protected  voidinitCatalinaEnvironment()
    
public  booleanisTomcatStarted()
    
public  voidregisterWarMBean(String fileName)
     Register a WAR by delegating the operation to the registerWar() method.
public synchronized  voidremoveContext(Context context)
     Remove the specified Context from the set of defined Contexts for its associated Host.
protected  javax.naming.ContextsetGlobalNamingResources()
    
public  voidsetServer(Server server)
     Set the server instance we are configuring.
public  voidunRegisterWarMBean(String fileName)
     Unregister a WAR by delegating the operation to the unRegisterWar() method.
protected  voidupdateServerInfos()
    

Field Detail
CONFIG_FILE
final protected static String CONFIG_FILE(Code)
Relative path of the configuration file





Method Detail
checkStartedContext
protected void checkStartedContext(Context context, PermissionManager permissionManager) throws JWebContainerServiceException(Code)
Check that the context that was started was right configured
Parameters:
  context - context to check
Parameters:
  permissionManager - the permission manager used for JACC
throws:
  JWebContainerServiceException - if the context was not right configured



createServerDigester
protected Digester createServerDigester()(Code)
Create and configure the Digester that will be used for the xml parsing of the configuration file. Digester the digester containing the rules for the xml parsingof the server.xml.



doInit
protected void doInit(javax.naming.Context ctx) throws ServiceException(Code)
Initialize the Catalina service.
Parameters:
  ctx - the configuration context of the service.
throws:
  ServiceException - if the initialization failed.



doRegisterWar
protected void doRegisterWar(javax.naming.Context ctx) throws JWebContainerServiceException(Code)
Deploy a specific WAR file specified in the context.
Parameters:
  ctx - the context which contains the configuration in orderto deploy the WAR.
throws:
  JWebContainerServiceException - if the registration of the WARfailed.



doStart
public void doStart() throws ServiceException(Code)
Start the Catalina service in a new thread
throws:
  ServiceException - if the startup failed.



doStop
protected void doStop() throws ServiceException(Code)
Stop the Catalina service.
throws:
  ServiceException - if the stop failed.



doUnRegisterWar
protected void doUnRegisterWar(javax.naming.Context ctx) throws JWebContainerServiceException(Code)
Undeploy a specific WAR file specified in the context.
Parameters:
  ctx - the context which contains the configuration in orderto undeploy a WAR.
throws:
  JWebContainerServiceException - if the unregistration failed.



findHost
public Host findHost(String hostName) throws JWebContainerServiceException(Code)
Find the specified host.
Parameters:
  hostName - the name of the host to find. the host found.
throws:
  JWebContainerServiceException - if the specified host cannot befound.



getConfigFile
protected File getConfigFile() throws FileNotFoundException(Code)
Return a File object representing the server.xml configuration file. a File object representing the server.xml configuration file.
throws:
  FileNotFoundException - if the configuration file is not found.



getConfiguredMatchingJonasContexts
protected List getConfiguredMatchingJonasContexts(String contextRoot, File fpackedWar, String destDir)(Code)
Check if there is a previous JOnASStandardContext which match the current context If true, deploy our context into the configured context
Parameters:
  contextRoot - name of the context that we want to find preconfigured contexts
Parameters:
  fpackedWar - file of the original war file
Parameters:
  destDir - name of the unpacked directory of the war file true if a context was found and used



getContexts
protected synchronized List getContexts() throws JWebContainerServiceException(Code)
Gets all the contexts of the current Tomcat server all the contexts of the current Tomcat server
throws:
  JWebContainerServiceException - if contexts can not be retrieved



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 default host cannotbe resolved (multiple services).



getDefaultHttpPort
public String getDefaultHttpPort() throws JWebContainerServiceException(Code)
Return the Default HTTP port number of the web container. Returns the first connector port if more than one are defined. the Default HTTP port number of the web container.
throws:
  JWebContainerServiceException - when default HTTP port cannot beresolved or none are defined.



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 default HTTPS port cannot beresolved (0 occurences).



getEngines
protected synchronized List getEngines() throws JWebContainerServiceException(Code)
Gets all the engines of the current Tomcat server all the engines of the current Tomcat server
throws:
  JWebContainerServiceException - if engines can not be retrieved



initCatalinaEnvironment
protected void initCatalinaEnvironment() throws ServiceException(Code)
Init the environment of catalina set catalina.home, catalina.base and unset the tomcat naming
throws:
  ServiceException - if catalina home is not set



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



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.



removeContext
public synchronized void removeContext(Context context) throws JWebContainerServiceException(Code)
Remove the specified Context from the set of defined Contexts for its associated Host. If this is the last Context for this Host, the Host will also be removed.
Parameters:
  context - The Context to be removed
throws:
  JWebContainerServiceException - if the context can not be removed



setGlobalNamingResources
protected javax.naming.Context setGlobalNamingResources() throws ServiceException(Code)
Defines the naming resources for tomcat only use for avoid null pointer when using a server.xml of the original distribution the previous naming context
throws:
  ServiceException - if a naming exception occurs



setServer
public void setServer(Server server)(Code)
Set the server instance we are configuring.
Parameters:
  server - The new server



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.



updateServerInfos
protected void updateServerInfos()(Code)
Update info of the serverName and serverVersion



Fields inherited from org.objectweb.jonas.web.AbsJWebContainerServiceImpl
final public static String AUTOLOADDIR(Code)(Java Doc)
final public static String CLASS(Code)(Java Doc)
final public static String DESCRIPTORS(Code)(Java Doc)
final protected static String INEAR_WORK_WEBAPPS_DIR_SUFFIX(Code)(Java Doc)
final protected static String JONAS_BASE(Code)(Java Doc)
final public static String PARSINGWITHVALIDATION(Code)(Java Doc)
final protected static String SINGLE_WORK_WEBAPPS_DIR_SUFFIX(Code)(Java Doc)
final protected static String WEBAPPS_DIR(Code)(Java Doc)
final protected static String WORK_DIR(Code)(Java Doc)
final protected static String WORK_WEBAPPS_DIR(Code)(Java Doc)

Methods inherited from org.objectweb.jonas.web.AbsJWebContainerServiceImpl
public void deployWars(Context ctx) throws JWebContainerServiceException(Code)(Java Doc)
protected void doInit(Context ctx) throws ServiceException(Code)(Java Doc)
abstract protected void doRegisterWar(Context ctx) throws JWebContainerServiceException(Code)(Java Doc)
protected void doStart() throws ServiceException(Code)(Java Doc)
protected void doStop() throws ServiceException(Code)(Java Doc)
abstract protected void doUnRegisterWar(Context ctx) throws JWebContainerServiceException(Code)(Java Doc)
public List getAutoloadDirectories()(Code)(Java Doc)
public URLClassLoader getClassLoader(URL warURL, String earAppName, ClassLoader parentLoader) throws JWebContainerServiceException(Code)(Java Doc)
public ClassLoader getContextLinkedClassLoader(URL warURL)(Code)(Java Doc)
public Integer getCurrentNumberOfWars()(Code)(Java Doc)
abstract public String getDefaultHost() throws JWebContainerServiceException(Code)(Java Doc)
abstract public String getDefaultHttpPort() throws JWebContainerServiceException(Code)(Java Doc)
abstract public String getDefaultHttpsPort() throws JWebContainerServiceException(Code)(Java Doc)
public List getDeployableWars() throws Exception(Code)(Java Doc)
public List getDeployedWars()(Code)(Java Doc)
public List getInstalledWars() throws Exception(Code)(Java Doc)
protected static Logger getLogger()(Code)(Java Doc)
protected MBeanServer getMbeanServer()(Code)(Java Doc)
protected ContainerNaming getNaming()(Code)(Java Doc)
public String getServerName()(Code)(Java Doc)
public String getServerVersion()(Code)(Java Doc)
protected URL getUnpackDir(URL warURL, String earAppName) throws JWebContainerServiceException(Code)(Java Doc)
public War getWar(URL url)(Code)(Java Doc)
public Set getWarNames()(Code)(Java Doc)
public String getWebappsDirectory()(Code)(Java Doc)
public boolean isWarLoaded(String fileName)(Code)(Java Doc)
public void registerWarMBean(String fileName) throws RemoteException, JWebContainerServiceException(Code)(Java Doc)
public void removeCache(ClassLoader earClassLoader)(Code)(Java Doc)
protected void setServerName(String serverName)(Code)(Java Doc)
protected void setServerVersion(String serverVersion)(Code)(Java Doc)
public void unDeployWars(URL[] urls)(Code)(Java Doc)
public void unRegisterWarMBean(String fileName) throws RemoteException, JWebContainerServiceException(Code)(Java Doc)
abstract protected void updateServerInfos()(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.