Package javax.xml.ws.spi

Examples of javax.xml.ws.spi.WebServiceFeatureAnnotation


            }
        }
    }

    private  WebServiceFeature getWebServiceFeatureBean(Annotation a) {
        WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);

        Class<? extends WebServiceFeature> beanClass = wsfa.bean();
        WebServiceFeature bean;

        Constructor ftrCtr = null;
        String[] paramNames = null;
        for (Constructor con : beanClass.getConstructors()) {
View Full Code Here


  
   protected void processEndpointFeatures(Deployment dep, ServerEndpointMetaData sepMetaData, Class<?> sepClass)
   {
      for (Annotation an : sepClass.getAnnotations())
      {
         WebServiceFeatureAnnotation wsfa = an.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);
         if (wsfa != null)
         {
            if (an.annotationType() == Addressing.class)
            {
               Addressing anFeature = sepClass.getAnnotation(Addressing.class);
               AddressingFeature feature = new AddressingFeature(anFeature.enabled(), anFeature.required());
               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);
            }
            else if (an.annotationType() == FastInfoset.class)
            {
               FastInfoset anFeature = sepClass.getAnnotation(FastInfoset.class);
               FastInfosetFeature feature = new FastInfosetFeature(anFeature.enabled());
               sepMetaData.addFeature(feature);
            }
            else if (an.annotationType() == JsonEncoding.class)
            {
               JsonEncoding anFeature = sepClass.getAnnotation(JsonEncoding.class);
               JsonEncodingFeature feature = new JsonEncodingFeature(anFeature.enabled());
               sepMetaData.addFeature(feature);
            }
            else if (an.annotationType() == RespectBinding.class)
            {
               RespectBinding anFeature = sepClass.getAnnotation(RespectBinding.class);
               RespectBindingFeature feature = new RespectBindingFeature(anFeature.enabled());
               sepMetaData.addFeature(feature);
            }
            else
            {
               throw new WebServiceException("Unsupported feature: " + wsfa.bean());
            }
         }
      }
   }
View Full Code Here

        url = url.substring(4); // cut off jar:
        return url.substring(0,url.lastIndexOf('!'));    // cut off everything after '!'
    }

    private static WebServiceFeature getWebServiceFeatureBean(Annotation a) {
        WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);
        Class<? extends WebServiceFeature> beanClass = wsfa.bean();
        WebServiceFeature bean;

        Constructor ftrCtr = null;
        String[] paramNames = null;
        for (Constructor con : beanClass.getConstructors()) {
View Full Code Here

        url = url.substring(4); // cut off jar:
        return url.substring(0,url.lastIndexOf('!'));    // cut off everything after '!'
    }

    private static WebServiceFeature getWebServiceFeatureBean(Annotation a) {
        WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);
        Class<? extends WebServiceFeature> beanClass = wsfa.bean();
        WebServiceFeature bean;

        Constructor ftrCtr = null;
        String[] paramNames = null;
        for (Constructor con : beanClass.getConstructors()) {
View Full Code Here

        url = url.substring(4); // cut off jar:
        return url.substring(0,url.lastIndexOf('!'));    // cut off everything after '!'
    }

    private static WebServiceFeature getWebServiceFeatureBean(Annotation a) {
        WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class);
        Class<? extends WebServiceFeature> beanClass = wsfa.bean();
        WebServiceFeature bean;

        Constructor ftrCtr = null;
        String[] paramNames = null;
        for (Constructor con : beanClass.getConstructors()) {
View Full Code Here

TOP

Related Classes of javax.xml.ws.spi.WebServiceFeatureAnnotation

Copyright © 2018 www.massapicom. 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.