Package org.apache.axis2.description

Examples of org.apache.axis2.description.ParameterImpl


    protected void setUp() throws Exception {
        UtilServer.start(Constants.TESTING_PATH + "MTOM-enabledRepository");
        service = new AxisService(serviceName);
        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        service.addParameter(new ParameterImpl(
                        AbstractMessageReceiver.SERVICE_CLASS, EchoSwA.class
                                .getName()));
        AxisOperation axisOp = new OutInAxisOperation(operationName);
        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        axisOp.setStyle(WSDLService.STYLE_DOC);
View Full Code Here


    protected void setUp() throws Exception {
        UtilServer.start(Constants.TESTING_PATH + "MTOM-enabledRepository");
        service = new AxisService(serviceName);
        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        service.addParameter(new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
                EchoService.class.getName()));

        AxisOperation axisOp = new OutInAxisOperation(operationName);
        axisOp.setMessageReceiver(new RawXMLINOutMessageReceiver());
        axisOp.setStyle(WSDLService.STYLE_DOC);
View Full Code Here

        super(testName);
    }

    protected void setUp() throws Exception {
        UtilServer.start();
        Parameter parameter = new ParameterImpl(
                Constants.Configuration.ENABLE_REST, "true");
        UtilServer.getConfigurationContext()
                .getAxisConfiguration().addParameter(parameter);
        service =
                Utils.createSimpleService(serviceName,
View Full Code Here

        super(testName);
    }

    protected void setUp() throws Exception {
        UtilServer.start();
        Parameter parameter = new ParameterImpl(Constants.Configuration.ENABLE_REST,"true");
        ((AxisConfigurationImpl)UtilServer.getConfigurationContext().getAxisConfiguration()).addParameter(parameter);
        service =
                Utils.createSimpleService(serviceName,
        Echo.class.getName(),
                        operationName);
View Full Code Here

            ConfigurationContext configContext =
                builder.buildConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            TransportInDescription transportIn =
                new TransportInDescription(new QName(Constants.TRANSPORT_MAIL));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.host", "127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "server@127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
            transportIn.addParameter(
                new ParameterImpl("transport.mail.replyToAddress", "foo@127.0.0.1"));
            transportIn.setReciver(new SimpleMailListener());
            transportIn.getReciever().init(configContext,transportIn);

            TransportOutDescription transportOut =
                new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));

            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.host", "127.0.0.1"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.user", "server"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.password", "axis2"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.port", "1049"));
            transportOut.setSender(new MailTransportSender());
            transportOut.getSender().init(configContext,transportOut);

            configContext.getAxisConfiguration().addTransportIn(transportIn);
            configContext.getAxisConfiguration().addTransportOut(transportOut);
View Full Code Here

            ConfigurationContext configContext =
                builder.buildConfigurationContext(org.apache.axis2.Constants.TESTING_REPOSITORY);

            TransportInDescription transportIn =
                new TransportInDescription(new QName(Constants.TRANSPORT_MAIL));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.host", "127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.user", "client@127.0.0.1"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.password", "axis2"));
            transportIn.addParameter(new ParameterImpl("transport.mail.pop3.port", "1134"));
            transportIn.addParameter(
                new ParameterImpl("transport.mail.replyToAddress", "client@127.0.0.1"));
            transportIn.setReciver(new SimpleMailListener());
            transportIn.getReciever().init(configContext,transportIn);

            TransportOutDescription transportOut =
                new TransportOutDescription(new QName(Constants.TRANSPORT_MAIL));

            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.host", "127.0.0.1"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.user", "client"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.password", "axis2"));
            transportOut.addParameter(new ParameterImpl("transport.mail.smtp.port", "1049"));
            transportOut.setSender(new MailTransportSender());
            transportOut.getSender().init(configContext,transportOut);

            configContext.getAxisConfiguration().addTransportIn(transportIn);
            configContext.getAxisConfiguration().addTransportOut(transportOut);
View Full Code Here

    protected void setUp() throws Exception {
        ConfigurationContext configContext = new ConfigurationContext(new AxisConfigurationImpl());
        LocalTransportReceiver.CONFIG_CONTEXT = configContext;

        ServiceDescription service = new ServiceDescription(serviceName);
        service.addParameter(new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS, MessageContextEnabledEcho.class.getName()));
        OperationDescription operation = new OperationDescription(operationName);
        operation.setMessageReciever(new RawXMLINOnlyMessageReceiver());
        service.addOperation(operation);
        service.setClassLoader(Thread.currentThread().getContextClassLoader());
        LocalTransportReceiver.CONFIG_CONTEXT.getAxisConfiguration().addService(service);
View Full Code Here

        String value3 = "value";

        configurationContext.setProperty(key1, value1);
        assertEquals(value1, msgctx.getProperty(key1));

        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
        assertEquals(value2, msgctx.getProperty(key2));

        opContext.setProperty(key1, value3);
        assertEquals(value3, msgctx.getProperty(key1));
View Full Code Here

        String value3 = "value";

        configurationContext.setProperty(key1, value1);
        assertEquals(value1, msgctx.getProperty(key1));

        axisConfiguration.addParameter(new ParameterImpl(key2, value2));
        assertEquals(value2, msgctx.getProperty(key2));
    }
View Full Code Here

        super(testName);
    }

    protected void setUp() throws Exception {
        UtilServer.start();
        Parameter parameter = new ParameterImpl(
                Constants.Configuration.ENABLE_REST, "true");
        UtilServer.getConfigurationContext()
                .getAxisConfiguration().addParameter(parameter);
        service =
                Utils.createSimpleService(serviceName,
View Full Code Here

TOP

Related Classes of org.apache.axis2.description.ParameterImpl

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.