Author: midon
Date: Thu Jul 24 22:50:04 2008
New Revision: 679672
URL: http://svn.apache.org/viewvc?rev=679672&view=rev
Log:
ODE-295, add all property pairs so that new properties (with string value) are
automatically handled (i.e no translation needed)
Modified:
ode/trunk/axis2/src/main/java/org/apache/ode/axis2/Properties.java
Modified: ode/trunk/axis2/src/main/java/org/apache/ode/axis2/Properties.java
URL:
http://svn.apache.org/viewvc/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/Properties.java?rev=679672&r1=679671&r2=679672&view=diff
==============================================================================
--- ode/trunk/axis2/src/main/java/org/apache/ode/axis2/Properties.java
(original)
+++ ode/trunk/axis2/src/main/java/org/apache/ode/axis2/Properties.java Thu Jul
24 22:50:04 2008
@@ -120,6 +120,13 @@
public static Options translate(Map<String, String> properties,
Options options) {
if (log.isDebugEnabled()) log.debug("Translating Properties for
Axis2");
if (properties.isEmpty()) return options;
+
+ /*first add all property pairs so that new properties (with string
value)
+ * are automatically handled (i.e no translation
needed) */
+ for (Map.Entry<String, String> e : properties.entrySet()) {
+ options.setProperty(e.getKey(), e.getValue());
+ }
+
if (properties.containsKey(PROP_HTTP_CONNECTION_TIMEOUT)) {
final String value =
properties.get(PROP_HTTP_CONNECTION_TIMEOUT);
try {
@@ -178,6 +185,12 @@
if (log.isDebugEnabled()) log.debug("Translating Properties for
HttpClient. Properties size="+properties.size());
if (properties.isEmpty()) return p;
+ /*first add all property pairs so that new properties (with string
value)
+* are automatically handled (i.e no translation needed) */
+ for (Map.Entry<String, String> e : properties.entrySet()) {
+ p.setParameter(e.getKey(), e.getValue());
+ }
+
// initialize the collection of headers
p.setParameter(HostParams.DEFAULT_HEADERS, new ArrayList());