serviceRefUMDM.setWsdlOverride(jbossServiceRefMD.getWsdlOverride());
serviceRefUMDM.setHandlerChain(jbossServiceRefMD.getHandlerChain());
}
private static UnifiedPortComponentRefMetaData getUnifiedPortComponentRefMetaData(final UnifiedServiceRefMetaData serviceRefUMDM, final PortComponentRef portComponentMD) {
final UnifiedPortComponentRefMetaData portComponentUMDM = new UnifiedPortComponentRefMetaData(serviceRefUMDM);
// propagate service endpoint interface
portComponentUMDM.setServiceEndpointInterface(portComponentMD.getServiceEndpointInterface());
// propagate MTOM properties
portComponentUMDM.setMtomEnabled(portComponentMD.isEnableMtom());
portComponentUMDM.setMtomThreshold(portComponentMD.getMtomThreshold());
// propagate addressing properties
final Addressing addressingMD = portComponentMD.getAddressing();
if (addressingMD != null) {
portComponentUMDM.setAddressingAnnotationSpecified(true);
portComponentUMDM.setAddressingEnabled(addressingMD.isEnabled());
portComponentUMDM.setAddressingRequired(addressingMD.isRequired());
portComponentUMDM.setAddressingResponses(addressingMD.getResponses());
}
// propagate respect binding properties
if (portComponentMD.getRespectBinding() != null) {
portComponentUMDM.setRespectBindingAnnotationSpecified(true);
portComponentUMDM.setRespectBindingEnabled(true);
}
// propagate link
portComponentUMDM.setPortComponentLink(portComponentMD.getPortComponentLink());
// propagate jboss specific MD
if (portComponentMD instanceof JBossPortComponentRef) {
processUnifiedJBossPortComponentRefMetaData(portComponentUMDM, portComponentMD);
}