Package org.talend.esb.servicelocator.client.internal

Examples of org.talend.esb.servicelocator.client.internal.EndpointTransformerImpl


        W3CEndpointReference endpointRef, expectedRef;
        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
        // builder.serviceName(SERVICE_NAME);
        builder.address(ENDPOINTURL);

        EndpointTransformerImpl transformer = new EndpointTransformerImpl();

        DOMResult result = new DOMResult();
        transformer.writePropertiesTo(slPropertiesImpl, result);
        Document docResult = (Document) result.getNode();

        builder.metadata(docResult.getDocumentElement());

        expectedRef = builder.build();
View Full Code Here


        W3CEndpointReference endpointRef, expectedRef;
        W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
        // builder.serviceName(SERVICE_NAME);
        builder.address(ENDPOINTURL);

        EndpointTransformerImpl transformer = new EndpointTransformerImpl();

        DOMResult result = new DOMResult();
        transformer.writePropertiesTo(slPropertiesImpl, result);
        Document docResult = (Document) result.getNode();

        builder.metadata(docResult.getDocumentElement());

        expectedRef = builder.build();
View Full Code Here

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

                builder.metadata(docResult.getDocumentElement());
            }
        }
View Full Code Here

                    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();

                builder.metadata(docResult.getDocumentElement());
            }
        }
View Full Code Here

    EndpointTransformerImpl transf;
   
    @Before
    public void setUp() throws Exception {
        transf = new EndpointTransformerImpl();
        endpoint = transf.toSLEndpoint(SERVICE_QNAME_1, EMPTY_CONTENT, true);
    }
View Full Code Here

                LAST_TIME_STOPPED,
                BindingType.JAXRS,
                TransportType.HTTPS,
                props);
       
        slEndpoint = new EndpointTransformerImpl().toSLEndpoint(SERVICE_QNAME_1, content, false);
    }
View Full Code Here

        assertThat(props.getValues(NAME_1), containsInAnyOrder(VALUE_1, VALUE_2));
    }
   
    @Test
    public void getAddressInvalidContent() {
        slEndpoint = new EndpointTransformerImpl().toSLEndpoint(SERVICE_QNAME_1, createContentInvalidEPR(), true);
       
        assertNull(slEndpoint.getAddress());
    }
View Full Code Here

    }

    @Test
    public void getPropertiesNotDefinedInContent() {
        content = createContent(ENDPOINT_1, LAST_TIME_STARTED, LAST_TIME_STOPPED, null);
        slEndpoint = new EndpointTransformerImpl().toSLEndpoint(SERVICE_QNAME_1, content, true);
       
        SLProperties properties = slEndpoint.getProperties();
        assertThat(properties.getPropertyNames(), hasSize(0));
    }
View Full Code Here

TOP

Related Classes of org.talend.esb.servicelocator.client.internal.EndpointTransformerImpl

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.