Package org.talend.esb.servicelocator.client

Examples of org.talend.esb.servicelocator.client.SLProperties


            throw new WebApplicationException(Response
                    .status(Status.INTERNAL_SERVER_ERROR)
                    .entity(e.getMessage()).build());
        }
        if (endpoint != null) {
            SLProperties properties = endpoint.getProperties();
            if (properties != null && !properties.getPropertyNames().isEmpty()) {
                EndpointTransformerImpl transformer = new EndpointTransformerImpl();

                DOMResult result = new DOMResult();
                transformer.writePropertiesTo(properties, result);
                Document docResult = (Document) result.getNode();
View Full Code Here


                    .toString() + "throws InterruptionFault");
            throw new InterruptedExceptionFault(e.getMessage(),
                    interruptionFaultDetail);
        }
        if (endpoint != null) {
            SLProperties properties = endpoint.getProperties();
            if (properties != null && !properties.getPropertyNames().isEmpty()) {
                EndpointTransformerImpl transformer = new EndpointTransformerImpl();

                DOMResult result = new DOMResult();
                transformer.writePropertiesTo(properties, result);
                Document docResult = (Document) result.getNode();
View Full Code Here

            for (EndpointNode endpointNode : endpointNodes) {

                if (endpointNode.isLive()) {
                    byte[] content = endpointNode.getContent();
                    SLEndpoint endpoint = transformer.toSLEndpoint(serviceName, content, true);
                    SLProperties props = endpoint.getProperties();

                    if (LOG.isLoggable(Level.INFO)) {
                        StringBuilder sb = new StringBuilder();
                        for (String prop: props.getPropertyNames()) {
                            sb.append(prop + " : ");
                            for (String value: props.getValues(prop))
                                sb.append(value + " ");
                            sb.append("\n");
                        }       
                        LOG.info("Lookup of service " + serviceName + " props = " + sb.toString());
                        LOG.info("matcher = " + matcher.toString());
View Full Code Here

   
    @Test
    public void getProperties() {
        CXFEndpointProvider epp = new CXFEndpointProvider(SERVICE_QNAME_1, ENDPOINT_1, PROPERTIES);

        SLProperties properties = epp.getProperties();
       
        assertTrue(properties.hasProperty(NAME_1));
        assertTrue(properties.hasProperty(NAME_2));
    }
View Full Code Here

    @Test
    public void getPropertiesNotDefined() {
        CXFEndpointProvider epp = new CXFEndpointProvider(SERVICE_QNAME_1, ENDPOINT_1, null);

        SLProperties properties = epp.getProperties();
        Collection<String> keys = properties.getPropertyNames();
        assertThat(keys, empty());
    }
View Full Code Here

TOP

Related Classes of org.talend.esb.servicelocator.client.SLProperties

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.