Search in sources :

Example 1 with UnifiedInitParamMetaData

use of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedInitParamMetaData in project wildfly by wildfly.

the class WSRefUtils method getUnifiedHandlerMetaData.

private static UnifiedHandlerMetaData getUnifiedHandlerMetaData(ServiceReferenceHandlerMetaData srhmd) {
    List<UnifiedInitParamMetaData> unifiedInitParamMDs = new LinkedList<UnifiedInitParamMetaData>();
    List<ParamValueMetaData> initParams = srhmd.getInitParam();
    if (initParams != null) {
        for (ParamValueMetaData initParam : initParams) {
            unifiedInitParamMDs.add(new UnifiedInitParamMetaData(initParam.getParamName(), initParam.getParamValue()));
        }
    }
    List<QName> soapHeaders = srhmd.getSoapHeader();
    Set<QName> soapHeaderList = soapHeaders != null ? new HashSet<QName>(soapHeaders) : null;
    List<String> soapRoles = srhmd.getSoapRole();
    Set<String> soapRolesList = soapRoles != null ? new HashSet<String>(soapRoles) : null;
    List<String> portNames = srhmd.getPortName();
    Set<String> portNameList = portNames != null ? new HashSet<String>(portNames) : null;
    return new UnifiedHandlerMetaData(srhmd.getHandlerClass(), srhmd.getHandlerName(), unifiedInitParamMDs, soapHeaderList, soapRolesList, portNameList);
}
Also used : UnifiedInitParamMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedInitParamMetaData) ParamValueMetaData(org.jboss.metadata.javaee.spec.ParamValueMetaData) QName(javax.xml.namespace.QName) LinkedList(java.util.LinkedList) UnifiedHandlerMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData)

Aggregations

LinkedList (java.util.LinkedList)1 QName (javax.xml.namespace.QName)1 ParamValueMetaData (org.jboss.metadata.javaee.spec.ParamValueMetaData)1 UnifiedHandlerMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData)1 UnifiedInitParamMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedInitParamMetaData)1