Package org.grails.cxf.utils

Examples of org.grails.cxf.utils.GrailsCxfEndpoint


    public Map<String, Object> getProperties() {
        return properties;
    }

    protected void setupProperties(){
        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        if(annotation != null && annotation.properties().length > 0) {
            for(GrailsCxfEndpointProperty prop : annotation.properties()){
                properties.put(prop.name(), prop.value());
            }
            log.debug("Endpoint [" + getFullName() + "] configured to use properties " + properties + ".");
        }
    }
View Full Code Here


            log.debug("Endpoint [" + getFullName() + "] configured to use properties " + properties + ".");
        }
    }

    protected void setupInterceptors() {
        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        if(annotation != null) {
            inInterceptors = setupInterceptorsViaAnnotation("inInterceptors", annotation.inInterceptors());
            outInterceptors = setupInterceptorsViaAnnotation("outInterceptors", annotation.outInterceptors());
            inFaultInterceptors = setupInterceptorsViaAnnotation("inFaultInterceptors", annotation.inFaultInterceptors());
            outFaultInterceptors = setupInterceptorsViaAnnotation("outFaultInterceptors", annotation.outFaultInterceptors());
        }
    }
View Full Code Here

    }

    protected void setupAddress() {
        address = "/" + getNameNoPostfix();

        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        if(annotation != null && !annotation.address().equals("")) {
            setupAddressViaAnnotation(annotation);
        } else {
            setupAddressViaProperty();
        }
View Full Code Here

    }

    protected void setupExpose() {
        expose = EndpointExposureType.JAX_WS; // Default to the most common type.

        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        if(annotation != null) {
            setupExposeViaAnnotation(annotation);
        } else {
            setupExposeViaProperty();
        }
View Full Code Here

        return manualExpose;
    }

    protected void buildExclusionSet() {
        final Set<String> groovyExcludes = DEFAULT_GROOVY_EXCLUDES;
        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);
        Set<String> aggExcludes = new HashSet<String>();

        List<String> automaticExcludes = buildAutomaticExcludes();

        aggExcludes.addAll(groovyExcludes);
        aggExcludes.addAll(automaticExcludes);

        if(annotation != null && annotation.excludes().length > 0) {
            buildExclusionSetFromAnnotation(aggExcludes, annotation);
        } else {
            buildExclusionSetFromProperty(aggExcludes);
        }
View Full Code Here

        log.debug("Endpoint [" + getFullName() + "] configured to servlet [" + servletName + "].");
    }

    protected void findWsdl() {
        String wsdlLocation = null;
        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);

        if(annotation != null && !annotation.wsdl().equals("")) {
            wsdlLocation = annotation.wsdl();
        } else {
            wsdlLocation = (String) getPropertyOrStaticPropertyOrFieldValue(PROP_WSDL, String.class);
        }

        if(wsdlLocation != null && !wsdlLocation.equals("")) {
View Full Code Here

    }

    protected void setupSoap12Binding() {
        soap12 = GrailsCxfUtils.getDefaultSoap12Binding();

        GrailsCxfEndpoint annotation = getClazz().getAnnotation(GrailsCxfEndpoint.class);

        if(annotation != null) {
            setupSoap12BindingViaAnnotation(annotation);
        } else {
            setupSoap12BindingViaProperty();
View Full Code Here

TOP

Related Classes of org.grails.cxf.utils.GrailsCxfEndpoint

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.