Examples of threshold()


Examples of javax.xml.ws.soap.MTOM.threshold()

            if (!ok(aRef.getWsdlFileUri()) && ok(annotation.wsdlLocation()))
                aRef.setWsdlFileUri(annotation.wsdlLocation());

            if (!aRef.hasMtomEnabled() && mtom != null) {
                aRef.setMtomEnabled(mtom.enabled());
                aRef.setMtomThreshold(mtom.threshold());
            }

            // check Addressing annotation
            if (aRef.getAddressing() == null && addressing != null) {
                aRef.setAddressing(new com.sun.enterprise.deployment.Addressing(
View Full Code Here

Examples of javax.xml.ws.soap.MTOM.threshold()

        MTOM mtom = implInfo.getImplementorClass().getAnnotation(MTOM.class);
        if (mtom == null && serviceClass != null) {
            mtom = serviceClass.getAnnotation(MTOM.class);
        }
        if (mtom != null) {
            features.add(new MTOMFeature(mtom.enabled(), mtom.threshold()));
        } else {
            //deprecated way to set mtom
            BindingType bt = implInfo.getImplementorClass().getAnnotation(BindingType.class);
            if (bt != null
                && (SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(bt.value())
View Full Code Here

Examples of javax.xml.ws.soap.MTOM.threshold()

               sepMetaData.addFeature(feature);
            }
            else if (an.annotationType() == MTOM.class)
            {
               MTOM anFeature = sepClass.getAnnotation(MTOM.class);
               MTOMFeature feature = new MTOMFeature(anFeature.enabled(), anFeature.threshold());
               sepMetaData.addFeature(feature);
            }
            else if (an.annotationType() == SchemaValidation.class)
            {
               processSchemaValidation(dep, sepMetaData, sepClass);
View Full Code Here

Examples of javax.xml.ws.soap.MTOM.threshold()

         final MTOM mtomAnnotation = getAnnotation(anElement, MTOM.class);

         if (mtomAnnotation != null) {
            serviceRefUMDM.setMtomAnnotationSpecified(true);
            serviceRefUMDM.setMtomEnabled(mtomAnnotation.enabled());
            serviceRefUMDM.setMtomThreshold(mtomAnnotation.threshold());
         }
      }

      private static void processRespectBindingAnnotation(final AnnotatedElement anElement, final UnifiedServiceRefMetaData serviceRefUMDM) {
         final javax.xml.ws.RespectBinding respectBindingAnnotation = getAnnotation(anElement, javax.xml.ws.RespectBinding.class);
View Full Code Here

Examples of javax.xml.ws.soap.MTOM.threshold()

                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
            MTOM mtomAnn = (MTOM) a;
            ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold());
        } else if (a instanceof RespectBinding) {
            RespectBinding rbAnn = (RespectBinding) a;
            ftr = new RespectBindingFeature(rbAnn.enabled());
        } else {
            ftr = getWebServiceFeatureBean(a);
View Full Code Here

Examples of javax.xml.ws.soap.MTOM.threshold()

                //throw error. We can't default to Responses.ALL as we dont know if the user has not used 2.2 annotation with responses.
                throw new RuntimeModelerException(ModelerMessages.RUNTIME_MODELER_ADDRESSING_RESPONSES_NOSUCHMETHOD(toJar(Which.which(Addressing.class))));
            }
        } else if (a instanceof MTOM) {
            MTOM mtomAnn = (MTOM) a;
            ftr = new MTOMFeature(mtomAnn.enabled(), mtomAnn.threshold());
        } else if (a instanceof RespectBinding) {
            RespectBinding rbAnn = (RespectBinding) a;
            ftr = new RespectBindingFeature(rbAnn.enabled());
        } else {
            ftr = getWebServiceFeatureBean(a);
View Full Code Here

Examples of org.apache.axis2.jaxws.description.builder.MTOMAnnot.threshold()

        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.threshold()

        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.waveprotocol.box.stat.Timed.threshold()

    if (name.isEmpty()) {
      name = nameCache.get(methodInvocation.getMethod());
    }
    Timer timer;
    if (timed.isRequest()) {
      timer = Timing.startRequest(name, timed.threshold());
    } else {
      timer = Timing.start(name, timed.threshold());
    }
    try {
      return methodInvocation.proceed();
View Full Code Here

Examples of org.waveprotocol.box.stat.Timed.threshold()

    }
    Timer timer;
    if (timed.isRequest()) {
      timer = Timing.startRequest(name, timed.threshold());
    } else {
      timer = Timing.start(name, timed.threshold());
    }
    try {
      return methodInvocation.proceed();
    } finally {
      Timing.stop(timer);
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.