Java Doc for WarBasedAxisConfigurator.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » deployment » 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 » Web Services AXIS2 » kernal » org.apache.axis2.deployment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.deployment.DeploymentEngine
      org.apache.axis2.deployment.WarBasedAxisConfigurator

WarBasedAxisConfigurator
public class WarBasedAxisConfigurator extends DeploymentEngine implements AxisConfigurator(Code)
Processes the init parameters for the AxisServlet. This allows the location of the axis2.xml and the module repository to be different from the default locations. The init parameters support alternate file, or URL values for both of these.


Field Summary
final public static  StringPARAM_AXIS2_REPOSITORY_PATH
    
final public static  StringPARAM_AXIS2_REPOSITORY_URL
    
final public static  StringPARAM_AXIS2_XML_PATH
     The name of the init parameter (axis2.xml.path) that can be used to override the default location for the axis2.xml file.
final public static  StringPARAM_AXIS2_XML_URL
     The name of the init parameter (axis2.xml.url) that when specified indicates the axis2.xml should be loaded using the URL specified as the value of this init parameter.

Constructor Summary
public  WarBasedAxisConfigurator(ServletConfig servletConfig)
     Default constructor for configurator. This determines the axis2.xml file to be used from the init parameters for the AxisServlet in the web.xml. The order of initialization is according the the following precedence:
  • If the parameter axis2.xml.path is present, the value is webapp relative path to be used as the location to the axis2.xml file.
  • Otherwise, if the parameter axis2.xml.url is present, the URL is used as the location to the axis2.xml file.
  • Otherwise, when both of the above init parameters are not present, file is attempted to be loaded from <repo>/WEB-INF/axis2.xml.
  • When none of the above could be found, the axis2.xml is loaded from the classpath resource, the value of DeploymenConstants.AXIS2_CONFIGURATION_RESOURCE.

Parameters:
  servletConfig - the ServletConfig object from the AxisServlet.

Method Summary
public  voidengageGlobalModules()
    
public  AxisConfigurationgetAxisConfiguration()
     Gets the axis configuration object by loading the repository.
public  voidloadServices()
     Loads the services within the repository.
public  voidsetConfigContext(ConfigurationContext configContext)
    

Field Detail
PARAM_AXIS2_REPOSITORY_PATH
final public static String PARAM_AXIS2_REPOSITORY_PATH(Code)
The name of the init parameter (axis2.repository.path) that when specified indicates the path to the



PARAM_AXIS2_REPOSITORY_URL
final public static String PARAM_AXIS2_REPOSITORY_URL(Code)
The name of the init parameter (axis2.repository.url) that when specified indicates the url to be used



PARAM_AXIS2_XML_PATH
final public static String PARAM_AXIS2_XML_PATH(Code)
The name of the init parameter (axis2.xml.path) that can be used to override the default location for the axis2.xml file. When both this init parameter, and the axis2.xml.url init parameters are not specified in the axis servlet init-parameter, the default location of ${app}/WEB-INF/conf/axis2.xml is used. The value of this path is interpreted as a file system absolute path. This parameter takes precedence over the axis2.xml.url init parameter.



PARAM_AXIS2_XML_URL
final public static String PARAM_AXIS2_XML_URL(Code)
The name of the init parameter (axis2.xml.url) that when specified indicates the axis2.xml should be loaded using the URL specified as the value of this init parameter. If the axis2.xml.path init parameter is present, this init parameter has no effect.




Constructor Detail
WarBasedAxisConfigurator
public WarBasedAxisConfigurator(ServletConfig servletConfig) throws DeploymentException(Code)
Default constructor for configurator. This determines the axis2.xml file to be used from the init parameters for the AxisServlet in the web.xml. The order of initialization is according the the following precedence:
  • If the parameter axis2.xml.path is present, the value is webapp relative path to be used as the location to the axis2.xml file.
  • Otherwise, if the parameter axis2.xml.url is present, the URL is used as the location to the axis2.xml file.
  • Otherwise, when both of the above init parameters are not present, file is attempted to be loaded from <repo>/WEB-INF/axis2.xml.
  • When none of the above could be found, the axis2.xml is loaded from the classpath resource, the value of DeploymenConstants.AXIS2_CONFIGURATION_RESOURCE.

Parameters:
  servletConfig - the ServletConfig object from the AxisServlet. This method is called from the init() of the AxisServlet.




Method Detail
engageGlobalModules
public void engageGlobalModules() throws AxisFault(Code)



getAxisConfiguration
public AxisConfiguration getAxisConfiguration() throws AxisFault(Code)
Gets the axis configuration object by loading the repository. The order of initialization is according the the following precedence:
  • If the parameter axis2.repository.path is present, this folder is used as the location to the repository.
  • Otherwise, if the parameter axis2.repository.url is present, the URL is used as the location to the repository.
  • Otherwise, when both of the above init parameters are not present, the web applications WEB-INF folder is used as the folder for the repository.
the instance of the AxisConfiguration object that reflects the repository according to the rules above.
throws:
  AxisFault - when an error occurred in the initialization of the AxisConfiguration.



loadServices
public void loadServices()(Code)
Loads the services within the repository. When the axis2.repository.path init parameter was present, we just call loadServices() in the deployment engine.
When the axis2.repository.url init parameter was present we load services from the respective URL value of the init parameter.
Otherwise, try to load the services from the /WEB-INF folder within the web application.



setConfigContext
public void setConfigContext(ConfigurationContext configContext)(Code)



Fields inherited from org.apache.axis2.deployment.DeploymentEngine
protected AxisConfiguration axisConfig(Code)(Java Doc)
protected ConfigurationContext configContext(Code)(Java Doc)
protected boolean hotDeployment(Code)(Java Doc)
protected boolean hotUpdate(Code)(Java Doc)
protected ModuleDeployer moduleDeployer(Code)(Java Doc)
protected File modulesDir(Code)(Java Doc)
protected String modulesPath(Code)(Java Doc)
protected RepositoryListener repoListener(Code)(Java Doc)
protected Scheduler scheduler(Code)(Java Doc)
protected ServiceDeployer serviceDeployer(Code)(Java Doc)
protected File servicesDir(Code)(Java Doc)
protected String servicesPath(Code)(Java Doc)
protected static String webLocationString(Code)(Java Doc)
protected List wsToDeploy(Code)(Java Doc)
protected List wsToUnDeploy(Code)(Java Doc)

Methods inherited from org.apache.axis2.deployment.DeploymentEngine
public static void addNewModule(AxisModule modulemetadata, AxisConfiguration axisConfiguration) throws AxisFault(Code)(Java Doc)
public static void addServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) throws AxisFault(Code)(Java Doc)
public void addWSToDeploy(DeploymentFileData file)(Code)(Java Doc)
public void addWSToUndeploy(WSInfo file)(Code)(Java Doc)
public static AxisModule buildModule(File modulearchive, AxisConfiguration config) throws DeploymentException(Code)(Java Doc)
public static AxisService buildService(InputStream serviceInputStream, ConfigurationContext configCtx) throws DeploymentException(Code)(Java Doc)
public static AxisServiceGroup buildServiceGroup(InputStream servicesxml, ClassLoader classLoader, String serviceGroupName, ConfigurationContext configCtx, ArchiveReader archiveReader, HashMap wsdlServices) throws AxisFault(Code)(Java Doc)
public void cleanup()(Code)(Java Doc)
public void doDeploy()(Code)(Java Doc)
public void engageModules() throws AxisFault(Code)(Java Doc)
protected static void fillServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, AxisConfiguration axisConfig) throws AxisFault(Code)(Java Doc)
public AxisConfiguration getAxisConfig()(Code)(Java Doc)
public static String getAxisServiceName(String fileName)(Code)(Java Doc)
public Deployer getDeployerForExtension(String extension)(Code)(Java Doc)
public HashMap getDirectoryToExtensionMappingMap()(Code)(Java Doc)
protected ArrayList getFileList(URL fileListUrl)(Code)(Java Doc)
public AxisModule getModule(String moduleName) throws AxisFault(Code)(Java Doc)
public ModuleDeployer getModuleDeployer()(Code)(Java Doc)
public File getModulesDir()(Code)(Java Doc)
public RepositoryListener getRepoListener()(Code)(Java Doc)
public File getRepositoryDir()(Code)(Java Doc)
protected String getRepositoryPath(File repository)(Code)(Java Doc)
public ServiceDeployer getServiceDeployer()(Code)(Java Doc)
public File getServicesDir()(Code)(Java Doc)
public String getWebLocationString()(Code)(Java Doc)
public boolean isHotUpdate()(Code)(Java Doc)
protected MessageReceiver loadDefaultMessageReceiver(String mepURL, AxisService service)(Code)(Java Doc)
public void loadFromClassPath() throws DeploymentException(Code)(Java Doc)
public void loadRepository(String repoDir) throws DeploymentException(Code)(Java Doc)
public void loadRepositoryFromURL(URL repoURL) throws DeploymentException(Code)(Java Doc)
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault(Code)(Java Doc)
public void loadServices()(Code)(Java Doc)
public void loadServicesFromUrl(URL repoURL)(Code)(Java Doc)
public AxisConfiguration populateAxisConfiguration(InputStream in) throws DeploymentException(Code)(Java Doc)
protected ArrayList populateService(AxisServiceGroup serviceGroup, URL servicesURL, String serviceName) throws DeploymentException(Code)(Java Doc)
protected void prepareRepository(String repositoryName)(Code)(Java Doc)
protected void setClassLoaders(String axis2repoURI) throws DeploymentException(Code)(Java Doc)
public void setConfigContext(ConfigurationContext configContext)(Code)(Java Doc)
protected void setDeploymentFeatures()(Code)(Java Doc)
public void setDirectoryToExtensionMappingMap(HashMap directoryToExtensionMappingMap)(Code)(Java Doc)
public void setExtensionToDeployerMappingMap(HashMap extensionToDeployerMappingMap)(Code)(Java Doc)
public static void setWebLocationString(String webLocationString)(Code)(Java Doc)
protected void startSearch(RepositoryListener listener)(Code)(Java Doc)
public void unDeploy()(Code)(Java Doc)

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.