Author: keith
Date: Mon Apr 28 02:51:59 2008
New Revision: 16252

Log:

Using a constants instead of a string


Modified:
   
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java

Modified: 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java
==============================================================================
--- 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java
      (original)
+++ 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/wsrequest/WSRequestHostImpl.java
      Mon Apr 28 02:51:59 2008
@@ -530,7 +530,7 @@
                 }
 
                 Object passwordObject =
-                        optionsArray.get("username", optionsArray);
+                        optionsArray.get("password", optionsArray);
                 if (passwordObject != null &&
                         !(passwordObject instanceof Undefined)
                         && !(passwordObject instanceof UniqueTag)) {
@@ -686,9 +686,6 @@
                     if (policyData.isTransportBinding()) {
                         if (supportingTokens != null && 
supportingTokens.getTokens() != null &&
                                 supportingTokens.getTokens().size() > 0) {
-
-//                            log.debug("Processing signed supporting tokens");
-
                             ArrayList tokens = supportingTokens.getTokens();
                             for (Iterator iter = tokens.iterator(); 
iter.hasNext();) {
 
@@ -706,7 +703,7 @@
                         }
                     }
                     if (needRampart) {
-                        wsRequest.sender.engageModule("rampart");
+                        wsRequest.sender.engageModule(MashupConstants.RAMPART);
                     }
                     wsRequest.responseXML = 
wsRequest.sender.sendReceive(operationName, payloadElement);
                 } else {
@@ -870,7 +867,7 @@
             }
             options.setUserName(username);
             options.setPassword(passwd);
-            wsRequest.sender.engageModule("rampart");
+            wsRequest.sender.engageModule(MashupConstants.RAMPART);
         } else if (username != null) {
             // handle basic authentication
             // set username if not null

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to