Examples of AxisEndpoint


Examples of org.apache.axis2.description.AxisEndpoint

        axisService.setDocumentation("Tuscany configured AxisService for service: " + endpointURL);
       
        // TODO - again, do we ever have more than one endpoint
        //        on the service side?
        for (Iterator i = axisService.getEndpoints().values().iterator(); i.hasNext();) {
            AxisEndpoint ae = (AxisEndpoint)i.next();
            if (endpointURL.startsWith("jms")) {
// not in Axis2 1.5.1
//                Parameter qcf = new Parameter(JMSConstants.CONFAC_PARAM, null);
//                qcf.setValue(DEFAULT_QUEUE_CONNECTION_FACTORY);
//                axisService.addParameter(qcf);
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            });
            } catch ( PrivilegedActionException e ) {
               throw (AxisFault) e.getException();
            }

        AxisEndpoint axisEndpoint = (AxisEndpoint)axisService.getEndpoints().get(axisService.getEndpointName());
        options.setTo(new EndpointReference(axisEndpoint.getEndpointURL()));
        if (axisEndpoint != null) {
            options.setSoapVersionURI((String)axisEndpoint.getBinding().getProperty(WSDL2Constants.ATTR_WSOAP_VERSION));
        }
        return axisService;
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            });
            } catch ( PrivilegedActionException e ) {
               throw (AxisFault) e.getException();
            }

        AxisEndpoint axisEndpoint = (AxisEndpoint)axisService.getEndpoints().get(axisService.getEndpointName());
        options.setTo(new EndpointReference(axisEndpoint.getEndpointURL()));
        if (axisEndpoint != null) {
            options.setSoapVersionURI((String)axisEndpoint.getBinding().getProperty(WSDL2Constants.ATTR_WSOAP_VERSION));
        }
        return axisService;
    }
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        }
        axisService.setName(name);
        axisService.setEndpointURL(endpointURL);
        axisService.setDocumentation("Tuscany configured AxisService for service: " + endpointURL);
        for ( Iterator i = axisService.getEndpoints().values().iterator(); i.hasNext(); ) {
            AxisEndpoint ae = (AxisEndpoint)i.next();
            if (endpointURL.startsWith("jms") ) {
                Parameter qcf = new Parameter(JMSConstants.CONFAC_PARAM, null);
                qcf.setValue(DEFAULT_QUEUE_CONNECTION_FACTORY);
                axisService.addParameter(qcf);
                break;
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            Map endPointMap = service.getEndpoints();
            for (Object o : endPointMap.entrySet()) {
                scenario = null;

                Map.Entry entry = (Map.Entry) o;
                AxisEndpoint point = (AxisEndpoint) entry.getValue();
                AxisBinding binding = point.getBinding();
                java.util.Collection policies = binding.getPolicySubject()
                        .getAttachedPolicyComponents();
                Iterator policyComponents = policies.iterator();
                String policyId = "";
                while (policyComponents.hasNext()) {
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        }

        /**
         * This will get the current end point which Axis2 picks the incoming request.
         */
        AxisEndpoint axisEndpoint = (AxisEndpoint) inMsgCtx.
                getProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME);
        if (axisEndpoint == null) {
            String defaultEndpointName = axisService.getEndpointName();
            axisEndpoint = axisService.getEndpoints().get(defaultEndpointName);
            if (axisEndpoint == null) {
                throw new AxisFault("AxisEndpoint cannot be null.");
            }
        }

        portName = axisEndpoint.getName();
        AxisBinding axisBinding = axisEndpoint.getBinding();
        bindingQName = axisBinding.getName();

        /** In this implementation, we assume that AxisBinding's QName is equal to WSDL bindings QName. */
        wsdlBinding = wsdlDef.getBinding(bindingQName);
        if (wsdlBinding == null) {
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

        // at axis2
        Map endPointMap = axisService.getEndpoints();
        for (Object o : endPointMap.entrySet()) {
            Map.Entry entry = (Map.Entry) o;
            AxisEndpoint point = (AxisEndpoint) entry.getValue();
            AxisBinding binding = point.getBinding();
            binding.applyPolicy(policy);
        }

        // handle each module required
        try {
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            // at axis2
            Map endPointMap = service.getEndpoints();
            for (Object o : endPointMap.entrySet()) {
                Map.Entry entry = (Map.Entry) o;
                AxisEndpoint point = (AxisEndpoint) entry.getValue();
                AxisBinding binding = point.getBinding();
                Policy policy = binding.getEffectivePolicy();
                removeAssertionsByNamespace(policy, namesapce);
            }

            // handle module removals
View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            // at axis2
            Map endPointMap = service.getEndpoints();
            for (Object o : endPointMap.entrySet()) {
                Map.Entry entry = (Map.Entry) o;
                AxisEndpoint point = (AxisEndpoint) entry.getValue();
                AxisBinding binding = point.getBinding();
                PolicySubject subject = binding.getPolicySubject();
                subject.detachPolicyComponent(policyKey);
            }

View Full Code Here

Examples of org.apache.axis2.description.AxisEndpoint

            policyDataArray.add(policyData);
        }

        for (Iterator iterator = axisService.getEndpoints().values().iterator();
             iterator.hasNext();) {
            AxisEndpoint axisEndpoint = (AxisEndpoint) iterator.next();
            policyList = new ArrayList<PolicyComponent>(axisEndpoint.getPolicySubject()
                    .getAttachedPolicyComponents());

            if (!policyList.isEmpty()) {
                PolicyMetaData policyData = new PolicyMetaData();
                policyData.setWrapper("Policies that are applicable for " + axisEndpoint.getName()
                                      + " endpoint");
                policyData.setPolycies(PolicyUtil.processPolicyElements(policyList.iterator(),
                                                                        new PolicyLocator(
                                                                                axisService)));
                policyDataArray.add(policyData);
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.