Package org.apache.axis.configuration

Examples of org.apache.axis.configuration.FileProvider


            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


    }

    protected void setUp()
    {
        InputStream is = getClass().getResourceAsStream(INPUT_FILE);
        FileProvider provider = new FileProvider(is);
        server = new AxisServer(provider);
    }
View Full Code Here

     * Configure a transport handler that simulate a Fault on server-side
     * @param client AxisClient
     */
    private void addFaultTransport(AxisClient client) {

        FileProvider config = (FileProvider) client.getConfig();

        WSDDDeployment depl = config.getDeployment();
        if (depl == null) {
            depl = new WSDDDeployment();
        }
        WSDDTransport trans = new AxisFaultWSDDTransport();
        depl.deployTransport(trans);
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
        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

        Admin admin = new Admin();

        AxisEngine engine;
        if ( args[0].equals("client") )
            engine = new AxisClient(new FileProvider(Constants.CLIENT_CONFIG_FILE));
        else
            engine = new AxisServer(new FileProvider(Constants.SERVER_CONFIG_FILE));
        engine.setShouldSaveConfig(true);
        engine.init();
        MessageContext msgContext = new MessageContext(engine);

        try {
View Full Code Here

public class AdminServlet extends HttpServlet {
    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"),
                                     Constants.SERVER_CONFIG_FILE);

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

    public AxisServer getEngine() throws AxisFault {
        if (getServletContext().getAttribute("AxisEngine") == null) {
            String webInfPath = getServletContext().getRealPath("/WEB-INF");
            // 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(webInfPath,
                                     Constants.SERVER_CONFIG_FILE);

            Map environment = new HashMap();
            environment.put("servletContext", getServletContext());
            environment.put("provider", provider);
View Full Code Here

     */
    private AxisEngine clientEngine;

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

     * 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(Constants.CLIENT_CONFIG_FILE)); // !!!!
        }
        return clientEngine;
    }
View Full Code Here

    }

    protected void setUp()
    {
        InputStream is = getClass().getResourceAsStream(INPUT_FILE);
        FileProvider provider = new FileProvider(is);
        server = new AxisServer(provider);
    }
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.