Search in sources :

Example 6 with SLPropertiesImpl

use of org.talend.esb.servicelocator.client.SLPropertiesImpl in project tesb-rt-se by Talend.

the class SLPropertiesConverter method toSLProperties.

public static SLProperties toSLProperties(ServiceLocatorPropertiesType props) {
    SLPropertiesImpl slProperties = new SLPropertiesImpl();
    for (EntryType entry : props.getEntry()) {
        String key = entry.getKey();
        List<String> values = entry.getValue();
        slProperties.addProperty(key, values);
    }
    return slProperties;
}
Also used : EntryType(org.talend.esb.servicelocator.client.internal.endpoint.EntryType) SLPropertiesImpl(org.talend.esb.servicelocator.client.SLPropertiesImpl)

Aggregations

SLPropertiesImpl (org.talend.esb.servicelocator.client.SLPropertiesImpl)6 Test (org.junit.Test)3 ArrayList (java.util.ArrayList)2 DOMResult (javax.xml.transform.dom.DOMResult)2 W3CEndpointReference (javax.xml.ws.wsaddressing.W3CEndpointReference)2 W3CEndpointReferenceBuilder (javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder)2 BindingType (org.talend.esb.servicelocator.client.BindingType)2 ServiceLocatorException (org.talend.esb.servicelocator.client.ServiceLocatorException)2 SimpleEndpoint (org.talend.esb.servicelocator.client.SimpleEndpoint)2 TransportType (org.talend.esb.servicelocator.client.TransportType)2 EndpointTransformerImpl (org.talend.esb.servicelocator.client.internal.EndpointTransformerImpl)2 EntryType (org.talend.esb.servicelocator.client.internal.endpoint.EntryType)2 Document (org.w3c.dom.Document)2 WebApplicationException (javax.ws.rs.WebApplicationException)1 QName (javax.xml.namespace.QName)1 Endpoint (org.talend.esb.servicelocator.client.Endpoint)1 SLEndpoint (org.talend.esb.servicelocator.client.SLEndpoint)1 ServiceLocatorPropertiesType (org.talend.esb.servicelocator.client.internal.endpoint.ServiceLocatorPropertiesType)1 EntryType (org.talend.schemas.esb.locator._2011._11.EntryType)1 InterruptionFaultDetail (org.talend.schemas.esb.locator._2011._11.InterruptionFaultDetail)1