You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by in...@apache.org on 2007/05/04 08:05:04 UTC
svn commit: r535105 - in
/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints:
AddressEndpointFactory.java WSDLEndpointFactory.java
Author: indika
Date: Thu May 3 23:05:03 2007
New Revision: 535105
URL: http://svn.apache.org/viewvc?view=rev&rev=535105
Log:
fixed some minor issue in AddressEndpointFactory and WSDLEndpointFactory
Modified:
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java
webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java?view=diff&rev=535105&r1=535104&r2=535105
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/AddressEndpointFactory.java Thu May 3 23:05:03 2007
@@ -214,7 +214,7 @@
if (duration != null) {
String d = duration.getText();
if (d != null) {
- long timeoutSeconds = new Long(d).longValue();
+ long timeoutSeconds = new Long(d.trim()).longValue();
endpoint.setTimeoutDuration(timeoutSeconds * 1000);
}
}
@@ -224,9 +224,9 @@
if (action != null) {
String a = action.getText();
if (a != null) {
- if (a.equalsIgnoreCase("discard")) {
+ if ((a.trim()).equalsIgnoreCase("discard")) {
endpoint.setTimeoutAction(Constants.DISCARD);
- } else if (a.equalsIgnoreCase("fault")) {
+ } else if ((a.trim()).equalsIgnoreCase("fault")) {
endpoint.setTimeoutAction(Constants.DISCARD_AND_FAULT);
}
}
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java?view=diff&rev=535105&r1=535104&r2=535105
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/WSDLEndpointFactory.java Thu May 3 23:05:03 2007
@@ -276,7 +276,7 @@
if (duration != null) {
String d = duration.getText();
if (d != null) {
- long timeoutSeconds = new Long(d).longValue();
+ long timeoutSeconds = new Long(d.trim()).longValue();
endpointDefinition.setTimeoutDuration(timeoutSeconds * 1000);
}
}
@@ -286,9 +286,9 @@
if (action != null) {
String a = action.getText();
if (a != null) {
- if (a.equalsIgnoreCase("discard")) {
+ if ((a.trim()).equalsIgnoreCase("discard")) {
endpointDefinition.setTimeoutAction(Constants.DISCARD);
- } else if (a.equalsIgnoreCase("fault")) {
+ } else if ((a.trim()).equalsIgnoreCase("fault")) {
endpointDefinition.setTimeoutAction(Constants.DISCARD_AND_FAULT);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org