* @param handlerSBMD handler switchboard meta data
* @return handler JBossWS unified meta data
*/
private UnifiedHandlerMetaData getUnifiedHandlerMetaData(final Handler handlerSBMD)
{
final UnifiedHandlerMetaData handlerUMDM = new UnifiedHandlerMetaData();
handlerUMDM.setHandlerName(handlerSBMD.getHandlerName());
handlerUMDM.setHandlerClass(handlerSBMD.getHandlerClass());
// translate handler init params
final Map<String, String> handlerInitParamsSBMD = handlerSBMD.getInitParams();
if (handlerInitParamsSBMD != null)
{
for (final String initParamName : handlerInitParamsSBMD.keySet())
{
final UnifiedInitParamMetaData handlerInitParamUMDM = new UnifiedInitParamMetaData();
handlerInitParamUMDM.setParamName(initParamName);
handlerInitParamUMDM.setParamValue(handlerInitParamsSBMD.get(initParamName));
handlerUMDM.addInitParam(handlerInitParamUMDM);
}
}
// translate handler soap headers
final Collection<QName> handlerSoapHeadersSBDM = handlerSBMD.getSoapHeaders();
if (handlerSoapHeadersSBDM != null)
{
for (final QName soapHeader : handlerSoapHeadersSBDM)
{
handlerUMDM.addSoapHeader(soapHeader);
}
}
// translate handler soap roles
final Collection<String> handlerSoapRolesSBMD = handlerSBMD.getSoapRoles();
if (handlerSoapRolesSBMD != null)
{
for (final String soapRole : handlerSoapRolesSBMD)
{
handlerUMDM.addSoapRole(soapRole);
}
}
// translate handler port names
final Collection<String> handlerPortNamesSBMD = handlerSBMD.getPortNames();
if (handlerPortNamesSBMD != null)
{
for (final String portName : handlerPortNamesSBMD)
{
handlerUMDM.addPortName(portName);
}
}
return handlerUMDM;
}