axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r382681 - in /webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security: handler/config/OutflowConfiguration.java util/Axis2Util.java
Date Fri, 03 Mar 2006 06:04:07 GMT
Author: ruchithf
Date: Thu Mar  2 22:04:06 2006
New Revision: 382681

URL: http://svn.apache.org/viewcvs?rev=382681&view=rev
Log:
- Enabling setPrecisionInMilliseconds from outflow configuration
- creating the correct factory in the case of SOAP12 when converting from llom to doom


Modified:
    webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/handler/config/OutflowConfiguration.java
    webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/handler/config/OutflowConfiguration.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/handler/config/OutflowConfiguration.java?rev=382681&r1=382680&r2=382681&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/handler/config/OutflowConfiguration.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/handler/config/OutflowConfiguration.java
Thu Mar  2 22:04:06 2006
@@ -448,7 +448,25 @@
 		return (String) this.actionList[this.currentAction]
 				.get(WSHandlerConstants.ENC_PROP_FILE);
 	}
-	
+
+    /**
+     * Enable/Disable PrecisionInMilliseconds
+     * @param encPropFile
+     */
+    public void setPrecisionInMilliseconds(boolean value) {
+        this.actionList[this.currentAction].put(
+                WSHandlerConstants.TIMESTAMP_PRECISION, value?"true":"false");
+    }
+    
+    /**
+     * Returns whether PrecisionInMilliseconds is enabled or not
+     * @return Returns String.
+     */
+    public String getPrecisionInMilliseconds() {
+        return (String) this.actionList[this.currentAction]
+                .get(WSHandlerConstants.TIMESTAMP_PRECISION);
+    }
+    
 	/**
 	 * Option to add additional elements in the username token element.
 	 * Example: Nonce and Create elements

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java?rev=382681&r1=382680&r2=382681&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/util/Axis2Util.java
Thu Mar  2 22:04:06 2006
@@ -61,7 +61,7 @@
 				factory = DOOMAbstractFactory.getSOAP11Factory();
 			} else {
 				nsURI = SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI;
-				factory = DOOMAbstractFactory.getSOAP11Factory();
+				factory = DOOMAbstractFactory.getSOAP12Factory();
 			}
 			
 			StAXSOAPModelBuilder stAXSOAPModelBuilder = new StAXSOAPModelBuilder(env.getXMLStreamReader(),factory,
nsURI);



Mime
View raw message