Changeset 3967


Ignore:
Timestamp:
2003-03-25T09:40:57+12:00 (21 years ago)
Author:
kjdon
Message:

tidied up from att in responses

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r3942 r3967  
    312312        Element single_message = mess_doc.createElement(GSXML.MESSAGE_ELEM);
    313313        single_message.appendChild(request);
    314         Element response = ((ModuleInterface)service_map_.get(service)).process(single_message);
    315         if (response != null) {
    316             mainResult.appendChild(doc_.importNode(GSXML.getChildByTagName(response, "response"), true));
     314        Element response_message = ((ModuleInterface)service_map_.get(service)).process(single_message);
     315        if (response_message != null) {
     316            Element response = (Element) GSXML.getChildByTagName(response_message, GSXML.RESPONSE_ELEM);
     317            String from = response.getAttribute(GSXML.FROM_ATT);
     318            from = GSPath.prependLink(from, cluster_name_);
     319            response.setAttribute(GSXML.FROM_ATT, from);
     320            mainResult.appendChild(doc_.importNode(response, true));
    317321        }
    318322         
Note: See TracChangeset for help on using the changeset viewer.