Examples of FileProvider


Examples of com.adito.networkplaces.store.file.FileProvider

    ((StandardFileSystemManager)VFS.getManager()).addProvider("tbz2", new Tbz2FileProvider());
    ((StandardFileSystemManager)VFS.getManager()).addProvider("gz", new GzipFileProvider());
    ((StandardFileSystemManager)VFS.getManager()).addProvider("tmp", new TemporaryFileProvider());
    ((StandardFileSystemManager)VFS.getManager()).addProvider(new String[] { "bzip2", "bz2" }, new Bzip2FileProvider());
   
    mgr.registerProvider(new FileProvider());
    mgr.registerProvider(new FTPProvider());
    mgr.registerProvider(new CIFSProvider());
    mgr.registerProvider(new JarProvider());
    mgr.registerProvider(new ZipProvider());
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

    try {
      Thread.currentThread().setContextClassLoader(Activator.class.getClassLoader());
      URL url = this.getClass().getResource("/axis/server-config.wsdd");
      InputStream is = url.openStream();
     
      EngineConfiguration fromBundleResource = new FileProvider(is);
     
      log.info("Configuration file read.");
      axisServer = new AxisServer(fromBundleResource);
      log.info("Axis server started.");
      webApp = new WebApp(getWebAppDescriptor());
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

    public AxisServer getEngine() {
        if (getServletContext().getAttribute("AxisEngine") == null) {
            // Set the base path for the AxisServer to our WEB-INF directory
            // (so the config files can't get snooped by a browser)
            FileProvider provider =
                    new FileProvider(getServletContext().getRealPath("/WEB-INF"),
                                     "server-config.xml");

            getServletContext().setAttribute("AxisEngine", new AxisServer(provider));
        }
        return (AxisServer)getServletContext().getAttribute("AxisEngine");
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

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

Examples of org.apache.axis.configuration.FileProvider

     */
    private AxisEngine clientEngine;

    public AxisServer()
    {
        this(new FileProvider(Constants.SERVER_CONFIG_FILE));
    }
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

     * Get this server's client engine.  Create it if it does
     * not yet exist.
     */
    public synchronized AxisEngine getClientEngine () {
        if (clientEngine == null) {
            clientEngine = new AxisClient(new FileProvider("client-config.xml")); // !!!!
        }
        return clientEngine;
    }
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

        }

        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

Examples of org.apache.axis.configuration.FileProvider

    {
        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

Examples of org.apache.axis.configuration.FileProvider

   {
      config = ( config == null ) ? DEFAULT_SERVER_CONFIG : config;
      AxisServer engine = (AxisServer) s_serverEngines.get( config );
      if ( engine == null )
      {
         engine = new AxisServer( new FileProvider( config ) );
         s_serverEngines.put( config, engine );
      }

      return engine;
   }
View Full Code Here

Examples of org.apache.axis.configuration.FileProvider

    *                   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
TOP
Copyright © 2018 www.massapi.com. 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.