Examples of MTOMAnnot


Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        List<Annotation> seiFeatureList = getSEIFeatureList(key, seiClass);
        if (seiFeatureList != null) {
            for (int i = 0; i < seiFeatureList.size(); i++) {
                Annotation checkAnnotation = seiFeatureList.get(i);
                if (checkAnnotation instanceof MTOMAnnot) {
                    MTOMAnnot mtomAnnot = (MTOMAnnot) checkAnnotation;
                    mtomEnabled = mtomAnnot.enabled();
                    // We found an explicit setting for this port, so do not check the old way of enabling MTOM
                    checkOldEnablementMethod = false;
                }
            }
        }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        }
        if (seiFeatureList != null) {
            for (int i = 0; i < seiFeatureList.size(); i++) {
                Annotation checkAnnotation = seiFeatureList.get(i);
                if (checkAnnotation instanceof MTOMAnnot) {
                    MTOMAnnot mtomAnnot = (MTOMAnnot) checkAnnotation;
                    threshold = mtomAnnot.threshold();
                }
            }
        }
        return threshold;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        List<Annotation> seiFeatureList = getSEIFeatureList(key, seiClass);
        if (seiFeatureList != null) {
            for (int i = 0; i < seiFeatureList.size(); i++) {
                Annotation checkAnnotation = seiFeatureList.get(i);
                if (checkAnnotation instanceof MTOMAnnot) {
                    MTOMAnnot mtomAnnot = (MTOMAnnot) checkAnnotation;
                    mtomEnabled = mtomAnnot.enabled();
                    // We found an explicit setting for this port, so do not check the old way of enabling MTOM
                    checkOldEnablementMethod = false;
                }
            }
        }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        }
        if (seiFeatureList != null) {
            for (int i = 0; i < seiFeatureList.size(); i++) {
                Annotation checkAnnotation = seiFeatureList.get(i);
                if (checkAnnotation instanceof MTOMAnnot) {
                    MTOMAnnot mtomAnnot = (MTOMAnnot) checkAnnotation;
                    threshold = mtomAnnot.threshold();
                }
            }
        }
        return threshold;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        URL wsdlUrl = ClientMetadataTest.getWsdlURL(multiPortWsdl);
        DescriptionBuilderComposite serviceDBC = new DescriptionBuilderComposite();
       
        Map<String, List<Annotation>> map = new HashMap();
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        MTOMAnnot mtomFeature = new MTOMAnnot();
        // MTOM is enabled, but a threshold is not set
        mtomFeature.setEnabled(true);
        wsFeatures.add(mtomFeature);
        map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);
        serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
        ServiceDelegate.setServiceMetadata(serviceDBC);
        Service service = Service.create(wsdlUrl, serviceQName);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        URL wsdlUrl = ClientMetadataTest.getWsdlURL(multiPortWsdl);
        DescriptionBuilderComposite serviceDBC = new DescriptionBuilderComposite();
       
        Map<String, List<Annotation>> map = new HashMap();
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        MTOMAnnot mtomFeature = new MTOMAnnot();
        // Explicitly disable MTOM with the new way of enabling it
        mtomFeature.setEnabled(false);
        mtomFeature.setThreshold(MTOM_THRESHOLD);
        wsFeatures.add(mtomFeature);
        map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);
        serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
        // Enable MTOM with the old way of enabling it
        serviceDBC.setIsMTOMEnabled(true);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

        URL wsdlUrl = ClientMetadataTest.getWsdlURL(multiPortWsdl);
        DescriptionBuilderComposite serviceDBC = new DescriptionBuilderComposite();
       
        Map<String, List<Annotation>> map = new HashMap();
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        MTOMAnnot mtomFeature = new MTOMAnnot();
        // The port we do the get on will not have any feautres specified for it.
        mtomFeature.setEnabled(false);
        mtomFeature.setThreshold(MTOM_THRESHOLD);
        wsFeatures.add(mtomFeature);
        // Set the feature on a different port name than we will be using in getPort
        map.put(ClientMetadataMTOMPortSEI2.class.getName(), wsFeatures);
        serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
        // Enable MTOM with the old way of enabling it
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

       
        Map<String, List<Annotation>> map = new HashMap();
       
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        // Enable MTOM explicitly on one port
        MTOMAnnot mtomFeature = new MTOMAnnot();
        mtomFeature.setEnabled(true);
        mtomFeature.setThreshold(MTOM_THRESHOLD);
        wsFeatures.add(mtomFeature);
        map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);
       
        // Disable MTOM explicitly on a different port
        ArrayList<Annotation> wsFeatures2 = new ArrayList<Annotation>();
        MTOMAnnot mtomFeatureDisable = new MTOMAnnot();
        mtomFeatureDisable.setEnabled(false);
        wsFeatures2.add(mtomFeatureDisable);
        map.put(ClientMetadataMTOMPortSEI2.class.getName(), wsFeatures2);
       
        serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
        ServiceDelegate.setServiceMetadata(serviceDBC);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

       
        Map<String, List<Annotation>> map = new HashMap();
       
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        // Enable MTOM explicitly on one port
        MTOMAnnot mtomFeature = new MTOMAnnot();
        mtomFeature.setEnabled(true);
        mtomFeature.setThreshold(MTOM_THRESHOLD);
        wsFeatures.add(mtomFeature);
        map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);
       
        // Do not specify the MTOM feature for the other port
       
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot

       
        Map<String, List<Annotation>> map = new HashMap();
       
        ArrayList<Annotation> wsFeatures = new ArrayList<Annotation>();
        // Enable MTOM explicitly then add another feature that enables it with a different threshold.
        MTOMAnnot mtomFeature = new MTOMAnnot();
        mtomFeature.setEnabled(true);
        mtomFeature.setThreshold(MTOM_THRESHOLD + 10);
        wsFeatures.add(mtomFeature);
       
        MTOMAnnot mtomFeature3 = new MTOMAnnot();
        mtomFeature3.setEnabled(true);
        mtomFeature3.setThreshold(MTOM_THRESHOLD);
        wsFeatures.add(mtomFeature3);
        map.put(ClientMetadataMTOMPortSEI.class.getName(), wsFeatures);

        serviceDBC.getProperties().put(MDQConstants.SEI_FEATURES_MAP, map);
        ServiceDelegate.setServiceMetadata(serviceDBC);
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.