Package org.apache.axis.configuration

Examples of org.apache.axis.configuration.FileProvider


    {
        Map env = new HashMap();

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

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


    /**
     * Allocate an embedded Axis server to process requests and initialize it.
     */
    public synchronized void init() {
        AxisServer server = new AxisServer(new FileProvider(Constants.SERVER_CONFIG_FILE));
        this.server=server;
    }
View Full Code Here

        Document doc = null ;

        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

        super(provider);
    }
   
    public AxisClient()
    {
        this(new FileProvider(Constants.CLIENT_CONFIG_FILE));
    }
View Full Code Here

    {
        Map env = new HashMap();

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

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

    * @throws ConfigurationException DOCUMENT_ME
    */
   protected FileProvider getFileProvider(  )
   throws ConfigurationException
   {
      FileProvider config = new FileProvider( getAxisConfigBasePath(  ),
                                              getAxisConfigFileName(  ) );
      return config;
   }
View Full Code Here

    *                   the server socket or failed to start the server
    */
   protected void startAxisServer(  )
   throws Exception
   {
      FileProvider config = getFileProvider(  );
      ServerSocket ss = new ServerSocket( getAxisServerSocketPort(  ) );
      m_simpleAxisServer = new NotSoSimpleAxisServer(  );
      m_simpleAxisServer.setServerSocket( ss );
      m_simpleAxisServer.setMyConfig( config );
      m_simpleAxisServer.start(  );
View Full Code Here

         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

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.