Package javax.xml.ws.spi

Examples of javax.xml.ws.spi.WebServiceFeatureAnnotation


        if (!isValid(annotation)) {
            throw ExceptionFactory.
                makeWebServiceException(Messages.getMessage("invalidWSAnnotation",
                                                            annotation.toString()));
        }
        WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation);

        annotationMap.put(wsfAnnotation.id(), annotation);
    }
View Full Code Here


        return annotationMap.values().toArray(ZERO_LENGTH_ARRAY);
    }
   
    public void configure(EndpointDescription endpointDescription) {
        for (Annotation annotation : getAllAnnotations()) {
            WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation);
            ServerConfigurator configurator = configuratorMap.get(wsfAnnotation.id());
            if (log.isDebugEnabled()) {
                log.debug("Found ServerConfigurator: " + configurator.getClass().getName());
            }
           
            if (log.isDebugEnabled()) {
View Full Code Here

            }
        }
    }

    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

            }
        }
    }

    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

                    QName name = (QName) i.next();
                    String featureName = getFeatureForBinding(name);
                    if (featureName != null && featureName.length() > 0) {
                        EndpointDescriptionJava edj = (EndpointDescriptionJava) endpointDesc;
                        Annotation anno = edj.getAnnoFeature(featureName);
                        WebServiceFeatureAnnotation feature = getFeatureFromAnnotation(anno);
                       
                        if (feature == null) {
                            addValidationFailure(this, "Annotation @RespectBinding was enabled, but the " +
                                        "corresponding feature " + featureName + " was not enabled.");
                            return Validator.INVALID;                           
View Full Code Here

   
    public boolean isValid(Annotation annotation) {
        if (annotation == null)
            return false;
       
        WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation);
       
        String id = null;
        if (wsfAnnotation != null)
          id = wsfAnnotation.id();
       
        return configuratorMap.containsKey(id);
    }
View Full Code Here

        if (!isValid(annotation)) {
            throw ExceptionFactory.
                makeWebServiceException(Messages.getMessage("invalidWSAnnotation",
                                                            annotation.toString()));
        }
        WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation);

        annotationMap.put(wsfAnnotation.id(), annotation);
    }
View Full Code Here

    public void configure(EndpointDescription endpointDescription) {
        if(log.isDebugEnabled()){
            log.debug("Start ServerFramework.conigure(EndpointDescription)");
        }
        for (Annotation annotation : getAllAnnotations()) {
            WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation);
            ServerConfigurator configurator = configuratorMap.get(wsfAnnotation.id());
            if (log.isDebugEnabled()) {
                log.debug("Found ServerConfigurator: " + configurator.getClass().getName());
            }
           
            if (log.isDebugEnabled()) {
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

            add(ftr);
        }
    }

    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.