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