use of org.apache.cxf.ws.addressing.MetadataType in project cxf by apache.
the class WSAEndpointReferenceUtils method getSetMetadata.
public static MetadataType getSetMetadata(EndpointReferenceType ref) {
MetadataType mt = ref.getMetadata();
if (null == mt) {
mt = WSA_OBJECT_FACTORY.createMetadataType();
ref.setMetadata(mt);
}
return mt;
}
use of org.apache.cxf.ws.addressing.MetadataType in project tesb-rt-se by Talend.
the class CXFEndpointProvider method addProperties.
/**
* Adds service locator properties to an endpoint reference.
* @param epr
* @param props
*/
private static void addProperties(EndpointReferenceType epr, SLProperties props) {
MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(epr);
ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props);
JAXBElement<ServiceLocatorPropertiesType> slp = SL_OBJECT_FACTORY.createServiceLocatorProperties(jaxbProps);
metadata.getAny().add(slp);
}
Aggregations