Examples of addParameter()


Examples of org.apache.axis2.description.ServiceDescription.addParameter()

        ((AxisConfigurationImpl)config).setDefaultDispatchers();
        LocalTransportReceiver.CONFIG_CONTEXT = new ConfigurationContext(
                config);

        ServiceDescription service = new ServiceDescription(serviceName);
        service.addParameter(
                new ParameterImpl(AbstractMessageReceiver.SERVICE_CLASS,
                        MessageContextEnabledEcho.class.getName()));
        OperationDescription operation = new OperationDescription(
                operationName);
        operation.setMessageReceiver(new RawXMLINOnlyMessageReceiver());

Examples of org.apache.axis2.description.TransportInDescription.addParameter()

public class VFSTransportDescriptionFactory implements TransportDescriptionFactory {
    public TransportInDescription createTransportInDescription() throws Exception {
        TransportInDescription trpInDesc = new TransportInDescription("vfs");
        trpInDesc.setReceiver(new VFSTransportListener());
        trpInDesc.addParameter(new Parameter(VFSConstants.TRANSPORT_FILE_LOCKING,
                VFSConstants.TRANSPORT_FILE_LOCKING_ENABLED));
        return trpInDesc;
    }

    public TransportOutDescription createTransportOutDescription() throws Exception {

Examples of org.apache.axis2.description.TransportOutDescription.addParameter()

    }

    public TransportOutDescription createTransportOutDescription() throws Exception {
        TransportOutDescription trpOutDesc = new TransportOutDescription("vfs");
        trpOutDesc.setSender(new VFSTransportSender());
        trpOutDesc.addParameter(new Parameter(VFSConstants.TRANSPORT_FILE_LOCKING,
                VFSConstants.TRANSPORT_FILE_LOCKING_ENABLED));
        return trpOutDesc;
    }

}

Examples of org.apache.axis2.engine.AxisConfiguration.addParameter()

            SynapseConfiguration synapseConfig = new SynapseConfiguration();
            AxisConfiguration axisConfig = new AxisConfiguration();
            synapseConfig.setAxisConfiguration(axisConfig);
            ConfigurationContext cfgCtx = new ConfigurationContext(axisConfig);
            SynapseEnvironment env = new Axis2SynapseEnvironment(cfgCtx, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_CONFIG, synapseConfig);
            axisConfig.addParameter(SynapseConstants.SYNAPSE_ENV, env);

            MessageContext msgCtx = TestUtils.getAxis2MessageContext(payload, null).
                    getAxis2MessageContext();
            msgCtx.setConfigurationContext(cfgCtx);

Examples of org.apache.axis2.engine.AxisObserver.addParameter()

                    END_LISTENER = true;
                } else if (eventType == XMLStreamConstants.START_ELEMENT) {
                    String tagnae = pullparser.getLocalName();
                    if (tagnae.equals(PARAMETERST)) {
                        Parameter parameter = processParameter();
                        observer.addParameter(parameter);
                    } else {
                        throw new DeploymentException(Messages.getMessage(DeploymentErrorMsgs.UNKNOWN_ELEMENT, tagnae));
                    }

                } else if (eventType == XMLStreamConstants.END_ELEMENT) {

Examples of org.apache.axis2.transport.base.endpoint.URLEndpoint.addParameter()

            OMElement p = (OMElement) paramItr.next();
            OMAttribute paramNameAttr = p.getAttribute(new QName(URLEndpointsConfiguration.NAME));
            if (paramNameAttr == null) {
                handleException("Parameter " + URLEndpointsConfiguration.NAME + " cannot be null");
            } else {
                endpoint.addParameter(new Parameter(paramNameAttr.getAttributeValue(), p.getText()));
            }
        }

        return endpoint;
    }

Examples of org.apache.beehive.netui.util.config.bean.CommandConfig.addParameter()

            for(int k = 0; k < propertyList.getLength(); k++) {
                Element propertyElement = (Element)propertyList.item(k);
                String propName = DomUtils.getChildElementText(propertyElement, "name");
                String propValue = DomUtils.getChildElementText(propertyElement, "value");
                CustomPropertyConfig propertyConfig = new CustomPropertyConfig(propName, propValue);
                commandConfig.addParameter(propertyConfig);
            }
        }

        return commandConfig;
    }

Examples of org.apache.bval.model.MetaConstructor.addParameter()

                final Integer index = metaConstraint.getIndex();
                if (index != null && index >= 0) {
                    MetaParameter param = metaConstructor.getParameter(index);
                    if (param == null) {
                        param = new MetaParameter(metaConstructor, index);
                        metaConstructor.addParameter(index, param);
                    }
                    param.addAnnotation(metaConstraint.getAnnotation());
                } else {
                    metaConstructor.addAnnotation(metaConstraint.getAnnotation());
                }

Examples of org.apache.bval.model.MetaMethod.addParameter()

                final Integer index = metaConstraint.getIndex();
                if (index != null && index >= 0) {
                    MetaParameter param = metaMethod.getParameter(index);
                    if (param == null) {
                        param = new MetaParameter(metaMethod, index);
                        metaMethod.addParameter(index, param);
                    }
                    param.addAnnotation(metaConstraint.getAnnotation());
                } else {
                    metaMethod.addAnnotation(metaConstraint.getAnnotation());
                }

Examples of org.apache.cactus.WebRequest.addParameter()

            // Configure a web request with the JSESSIONID cookie,
            // the username and the password.         
            WebRequest request = getSecurityRequest();
            request.setConfiguration(theConfiguration);
            request.addCookie(sessionIdCookieName, sessionId);
            request.addParameter("j_username", getName(),
                WebRequest.POST_METHOD);
            request.addParameter("j_password", getPassword(),
                WebRequest.POST_METHOD);
           
            // Make the connection using the configured web request.
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.