Package org.apache.axis2.description

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


        modifySchemaImportsAndIncludes(definition, name);

        // Axis2 1.3 has a bug with returning incorrect values for the port
        // addresses.  To work around this, compute the values here.
        Parameter modifyAddr = new Parameter("modifyUserWSDLPortAddress", "false");
        axisService.addParameter(modifyAddr);

        return axisService;
    }
   
   
View Full Code Here


        Parameter enableMTOM = new Parameter(Constants.Configuration.ENABLE_MTOM, webServiceFeatureInfo.isEnabled());
        Parameter threshold = new Parameter(Constants.Configuration.MTOM_THRESHOLD, webServiceFeatureInfo.getThreshold());

        try {
            service.addParameter(enableMTOM);
            service.addParameter(threshold);
        } catch (Exception e) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("mtomEnableErr"), e);
        }
    }
View Full Code Here

        Parameter enableMTOM = new Parameter(Constants.Configuration.ENABLE_MTOM, webServiceFeatureInfo.isEnabled());
        Parameter threshold = new Parameter(Constants.Configuration.MTOM_THRESHOLD, webServiceFeatureInfo.getThreshold());

        try {
            service.addParameter(enableMTOM);
            service.addParameter(threshold);
        } catch (Exception e) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("mtomEnableErr"), e);
        }
    }
View Full Code Here

        Parameter responses = new Parameter(AddressingConstants.WSAM_INVOCATION_PATTERN_PARAMETER_NAME, mapResponseAttributeToAddressing(webServiceFeatureInfo.getResponses()));

        try {
            AxisService service = endpointDescription.getAxisService();

            service.addParameter(disabled);
            service.addParameter(required);
            service.addParameter(responses);

            String value = Utils.getParameterValue(disabled);
            if (JavaUtils.isFalseExplicitly(value)) {
View Full Code Here

        try {
            AxisService service = endpointDescription.getAxisService();

            service.addParameter(disabled);
            service.addParameter(required);
            service.addParameter(responses);

            String value = Utils.getParameterValue(disabled);
            if (JavaUtils.isFalseExplicitly(value)) {
                ServiceDescription sd = endpointDescription.getServiceDescription();
View Full Code Here

        try {
            AxisService service = endpointDescription.getAxisService();

            service.addParameter(disabled);
            service.addParameter(required);
            service.addParameter(responses);

            String value = Utils.getParameterValue(disabled);
            if (JavaUtils.isFalseExplicitly(value)) {
                ServiceDescription sd = endpointDescription.getServiceDescription();
                AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
View Full Code Here

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 {
View Full Code Here

                    param.addChild(fac.createOMText(param, jmsProps.get(key)));
                    parms.addChild(param);
                }
               
                Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                trsIn.addParameter( queueConnectionFactory );
               
                trsIn.setReceiver(jmsListener);

                configContext.getAxisConfiguration().addTransportIn( trsIn );
                TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
View Full Code Here

                    param.addChild(fac.createOMText(param, jmsProps.get(key)));
                    parms.addChild(param);
                }
               
                Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                trsIn.addParameter( queueConnectionFactory );
               
                trsIn.setReceiver(jmsListener);

                configContext.getAxisConfiguration().addTransportIn( trsIn );
                TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
View Full Code Here

                        param.addChild(fac.createOMText(param, jmsProps.get(key)));
                        parms.addChild(param);
                    }
                   
                    Parameter queueConnectionFactory = new Parameter(DEFAULT_QUEUE_CONNECTION_FACTORY, parms);
                    trsIn.addParameter( queueConnectionFactory );
                   
                    trsIn.setReceiver(jmsListener);

                    configContext.getAxisConfiguration().addTransportIn( trsIn );
                    TransportOutDescription trsOut = configContext.getAxisConfiguration().getTransportOut(Constants.TRANSPORT_JMS);
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.