Java Doc for Deployer.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » 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 » Sevlet Container » tomcat catalina » org.apache.catalina 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.catalina.Deployer

All known Subclasses:   org.apache.catalina.core.StandardHost,  org.apache.catalina.core.StandardHostDeployer,
Deployer
public interface Deployer (Code)
A Deployer is a specialized Container into which web applications can be deployed and undeployed. Such a Container will create and install child Context instances for each deployed application. The unique key for each web application will be the context path to which it is attached.
author:
   Craig R. McClanahan
version:
   $Revision: 1.4 $ $Date: 2004/04/12 22:05:15 $


Field Summary
final public static  StringINSTALL_EVENT
     The ContainerEvent event type sent when a new application is installed by install(), after it has been started.
final public static  StringPRE_INSTALL_EVENT
     The ContainerEvent event type sent when a new application is being installed by install(), before it has been started.
final public static  StringREMOVE_EVENT
     The ContainerEvent event type sent when an existing application is removed by remove().


Method Summary
public  ContextfindDeployedApp(String contextPath)
     Return the Context for the deployed application that is associated with the specified context path (if any); otherwise return null.
public  String[]findDeployedApps()
     Return the context paths of all deployed web applications in this Container.
public  StringgetName()
     Return the name of the Container with which this Deployer is associated.
public  voidinstall(String contextPath, URL war)
     Install a new web application, whose web application archive is at the specified URL, into this container with the specified context path. A context path of "" (the empty string) should be used for the root application for this container.
public  voidinstall(URL config, URL war)
    

Install a new web application, whose context configuration file (consisting of a <Context> element) and web application archive are at the specified URLs.

If this application is successfully installed, a ContainerEvent of type INSTALL_EVENT will be sent to all registered listeners, with the newly created Context as an argument.

public  voidinstall(URL war)
     Installs a new web application from the web application archive at the specified URL, which must contain a META-INF/context.xml context configuration file (consisting of a <Context> element).

The web application is installed at the path specified inside the embedded META-INF/context.xml.

public  booleanisDeployXML()
     Returns true if context.xml config files are supported.
public  voidremove(String contextPath)
     Remove an existing web application, attached to the specified context path.
public  voidremove(String contextPath, boolean undeploy)
     Remove an existing web application, attached to the specified context path.
public  voidstart(String contextPath)
     Start an existing web application, attached to the specified context path.
public  voidstop(String contextPath)
     Stop an existing web application, attached to the specified context path.

Field Detail
INSTALL_EVENT
final public static String INSTALL_EVENT(Code)
The ContainerEvent event type sent when a new application is installed by install(), after it has been started.



PRE_INSTALL_EVENT
final public static String PRE_INSTALL_EVENT(Code)
The ContainerEvent event type sent when a new application is being installed by install(), before it has been started.



REMOVE_EVENT
final public static String REMOVE_EVENT(Code)
The ContainerEvent event type sent when an existing application is removed by remove().





Method Detail
findDeployedApp
public Context findDeployedApp(String contextPath)(Code)
Return the Context for the deployed application that is associated with the specified context path (if any); otherwise return null.
Parameters:
  contextPath - The context path of the requested web application



findDeployedApps
public String[] findDeployedApps()(Code)
Return the context paths of all deployed web applications in this Container. If there are no deployed applications, a zero-length array is returned.



getName
public String getName()(Code)
Return the name of the Container with which this Deployer is associated.



install
public void install(String contextPath, URL war) throws IOException(Code)
Install a new web application, whose web application archive is at the specified URL, into this container with the specified context path. A context path of "" (the empty string) should be used for the root application for this container. Otherwise, the context path must start with a slash.

If this application is successfully installed, a ContainerEvent of type INSTALL_EVENT will be sent to all registered listeners, with the newly created Context as an argument.
Parameters:
  contextPath - The context path to which this application shouldbe installed (must be unique)
Parameters:
  war - A URL of type "jar:" that points to a WAR file, or type"file:" that points to an unpacked directory structure containingthe web application to be installed
exception:
  IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash)
exception:
  IllegalStateException - if the specified context pathis already attached to an existing web application
exception:
  IOException - if an input/output error was encounteredduring installation




install
public void install(URL config, URL war) throws IOException(Code)

Install a new web application, whose context configuration file (consisting of a <Context> element) and web application archive are at the specified URLs.

If this application is successfully installed, a ContainerEvent of type INSTALL_EVENT will be sent to all registered listeners, with the newly created Context as an argument.


Parameters:
  config - A URL that points to the context configuration file tobe used for configuring the new Context
Parameters:
  war - A URL of type "jar:" that points to a WAR file, or type"file:" that points to an unpacked directory structure containingthe web application to be installed
exception:
  IllegalArgumentException - if one of the specified URLs isnull
exception:
  IllegalStateException - if the context path specified in thecontext configuration file is already attached to an existing webapplication
exception:
  IOException - if an input/output error was encounteredduring installation



install
public void install(URL war) throws IOException(Code)
Installs a new web application from the web application archive at the specified URL, which must contain a META-INF/context.xml context configuration file (consisting of a <Context> element).

The web application is installed at the path specified inside the embedded META-INF/context.xml. The docBase (if any) specified inside the embedded META-INF/context.xml is overridden with the web application's location.

If the installation succeeds, a ContainerEvent of type INSTALL_EVENT is sent to all registered listeners, with the newly created Context as its argument.
Parameters:
  war - URL pointing to web application location (WAR-packaged orunpacked directory)
exception:
  IllegalArgumentException - if war is null, or ifthe deployment host does not support any context.xmlconfiguration files
exception:
  IllegalStateException - if the context path specified in thecontext configuration file is already in use by an existingweb application
exception:
  IOException - if an input/output error was encounteredduring installation




isDeployXML
public boolean isDeployXML()(Code)
Returns true if context.xml config files are supported. true of context.xml config files are supported, false otherwise



remove
public void remove(String contextPath) throws IOException(Code)
Remove an existing web application, attached to the specified context path. If this application is successfully removed, a ContainerEvent of type REMOVE_EVENT will be sent to all registered listeners, with the removed Context as an argument.
Parameters:
  contextPath - The context path of the application to be removed
exception:
  IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash)
exception:
  IllegalArgumentException - if the specified context path doesnot identify a currently installed web application
exception:
  IOException - if an input/output error occurs duringremoval



remove
public void remove(String contextPath, boolean undeploy) throws IOException(Code)
Remove an existing web application, attached to the specified context path. If this application is successfully removed, a ContainerEvent of type REMOVE_EVENT will be sent to all registered listeners, with the removed Context as an argument. Deletes the web application war file and/or directory if they exist in the Host's appBase.
Parameters:
  contextPath - The context path of the application to be removed
Parameters:
  undeploy - boolean flag to remove web application from server
exception:
  IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash)
exception:
  IllegalArgumentException - if the specified context path doesnot identify a currently installed web application
exception:
  IOException - if an input/output error occurs duringremoval



start
public void start(String contextPath) throws IOException(Code)
Start an existing web application, attached to the specified context path. Only starts a web application if it is not running.
Parameters:
  contextPath - The context path of the application to be started
exception:
  IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash)
exception:
  IllegalArgumentException - if the specified context path doesnot identify a currently installed web application
exception:
  IOException - if an input/output error occurs duringstartup



stop
public void stop(String contextPath) throws IOException(Code)
Stop an existing web application, attached to the specified context path. Only stops a web application if it is running.
Parameters:
  contextPath - The context path of the application to be stopped
exception:
  IllegalArgumentException - if the specified context pathis malformed (it must be "" or start with a slash)
exception:
  IllegalArgumentException - if the specified context path doesnot identify a currently installed web application
exception:
  IOException - if an input/output error occurs while stoppingthe web application



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