}
}
}
private static UnifiedHandlerMetaData getUnifiedHandlerMetaData(ServiceReferenceHandlerMetaData srhmd) {
UnifiedHandlerMetaData handlerUMDM = new UnifiedHandlerMetaData();
handlerUMDM.setHandlerName(srhmd.getHandlerName());
handlerUMDM.setHandlerClass(srhmd.getHandlerClass());
List<ParamValueMetaData> initParams = srhmd.getInitParam();
if (initParams != null) {
for (ParamValueMetaData initParam : initParams) {
UnifiedInitParamMetaData param = new UnifiedInitParamMetaData();
param.setParamName(initParam.getParamName());
param.setParamValue(initParam.getParamValue());
handlerUMDM.addInitParam(param);
}
}
List<QName> soapHeaders = srhmd.getSoapHeader();
if (soapHeaders != null) {
for (QName soapHeader : soapHeaders) {
handlerUMDM.addSoapHeader(soapHeader);
}
}
List<String> soapRoles = srhmd.getSoapRole();
if (soapRoles != null) {
for (String soapRole : soapRoles) {
handlerUMDM.addSoapRole(soapRole);
}
}
List<String> portNames = srhmd.getPortName();
if (portNames != null) {
for (String portName : portNames) {
handlerUMDM.addPortName(portName);
}
}
return handlerUMDM;
}