Package org.apache.axis.configuration

Examples of org.apache.axis.configuration.FileProvider


            throw new BuildException( "No deploy WSDDs were specified!" );
        }

        try
        {
            AxisEngine axisEngine = new AxisServer( new FileProvider( m_configWsdd ) );
            m_msgContext = new MessageContext( axisEngine );
            m_axisAdmin = new Admin();
            for ( int i = 0; i < m_wsddFiles.size(); i++ )
            {
                deployWsdd( (File) m_wsddFiles.get( i ) );
View Full Code Here


        }

        WSDDDocument wsddDoc = new WSDDDocument(root);
        EngineConfiguration config = engine.getConfig();
        if (config instanceof FileProvider) {
            FileProvider wsddProvider = (FileProvider)config;
            WSDDDeployment deployment = wsddProvider.getDeployment();
            wsddDoc.deploy(deployment);
        }
        engine.refreshGlobalOptions();

        engine.saveConfiguration();
View Full Code Here

                engine = engine.getClientEngine();
            }
           
            WSDDDeployment dep = null;
            try {
                FileProvider config = (FileProvider)engine.getConfig();
                dep = config.getDeployment();
            } catch (Exception e) {
                // This will catch NPEs and ClassCastExceptions, either of
                // which means the engine isn't configurable.
            }
View Full Code Here

    {
        StringWriter writer = new StringWriter();
        SerializationContext context = new SerializationContextImpl(writer, null);
        context.setPretty(true);
        try {
            FileProvider config = (FileProvider)engine.getConfig();
            WSDDDeployment deployment = config.getDeployment();
            deployment.writeToContext(context);
        } catch (Exception e) {
            // If the engine config isn't a FileProvider, or we have no
            // engine config for some odd reason, we'll end up here.
View Full Code Here

    throws Exception  {
        Map env = new HashMap();

        // use FileProvider directly with a Avalon Source object instead of going
        // through the EngineConfigurationFactoryServlet class
        this.m_engineConfig = new FileProvider(this.m_serverWSDD.getInputStream());

        env.put(EngineConfiguration.PROPERTY_NAME, this.m_engineConfig);
        env.put(AxisEngine.ENV_ATTACHMENT_DIR, this.m_attachmentDir);
        // REVISIT(MC): JNDI Factory support ?
        //env.put(AxisEngine.ENV_SERVLET_CONTEXT, context);
View Full Code Here

    throws RemoteException
  {
    // Initialize local instance variables
    oLog = log;
    this.protocolFactory = protocolFactory;
    this.engineConfiguration = new FileProvider(engineConfigurationFile);
    this.connectionManager = new MultiThreadedHttpConnectionManager();
    this.connectionManager.getParams().setMaxTotalConnections(1);
    this.clientWorkstation = clientWorkstation;

    // Set up the configuration info object
View Full Code Here

    else
      baseUrl = serverUrl + serverLocation;
    this.userName = userName;
    this.password = password;
    this.myFactory = myFactory;
    this.configuration = new FileProvider(configFileName);
    this.connectionManager = connectionManager;
  }
View Full Code Here

        }

        WSDDDocument wsddDoc = new WSDDDocument(root);
        EngineConfiguration config = engine.getConfig();
        if (config instanceof FileProvider) {
            FileProvider wsddProvider = (FileProvider)config;
            WSDDDeployment deployment = wsddProvider.getDeployment();
            wsddDoc.deploy(deployment);
        }
        engine.refreshGlobalOptions();

        engine.saveConfiguration();
View Full Code Here

    {
        StringWriter writer = new StringWriter();
        SerializationContext context = new SerializationContextImpl(writer, null);
        context.setPretty(true);
        try {
            FileProvider config = (FileProvider)engine.getConfig();
            WSDDDeployment deployment = config.getDeployment();
            deployment.writeToContext(context);
        } catch (Exception e) {
            // If the engine config isn't a FileProvider, or we have no
            // engine config for some odd reason, we'll end up here.
View Full Code Here

            String config;
            config = (String)endpoint.getProperty(AxisConnector.AXIS_CLIENT_CONFIG_PROPERTY);

            if (config != null)
            {
                clientConfig = new FileProvider(config);
            }
            else
            {
                clientConfig = connector.getClientProvider();
            }
View Full Code Here

TOP

Related Classes of org.apache.axis.configuration.FileProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.