axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prad...@apache.org
Subject svn commit: r630936 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java
Date Mon, 25 Feb 2008 17:06:48 GMT
Author: pradine
Date: Mon Feb 25 09:06:39 2008
New Revision: 630936

URL: http://svn.apache.org/viewvc?rev=630936&view=rev
Log:
Change Boolean to String.

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java?rev=630936&r1=630935&r2=630936&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/server/config/AddressingConfigurator.java
Mon Feb 25 09:06:39 2008
@@ -35,6 +35,8 @@
 import org.apache.axis2.jaxws.description.ServiceDescription;
 import org.apache.axis2.jaxws.feature.ServerConfigurator;
 import org.apache.axis2.jaxws.registry.ServerConfiguratorRegistry;
+import org.apache.axis2.util.JavaUtils;
+import org.apache.axis2.util.Utils;
 
 /**
  * This class will enable/disable WS-Addressing for a JAX-WS 2.1 web service
@@ -58,7 +60,7 @@
     		(SubmissionAddressing) ((EndpointDescriptionJava) endpointDescription).getAnnoFeature(SubmissionAddressingFeature.ID);
     	AxisService service = endpointDescription.getAxisService();
     	Parameter namespace = new Parameter(AddressingConstants.WS_ADDRESSING_VERSION, null);
-    	Parameter disabled = new Parameter(AddressingConstants.DISABLE_ADDRESSING_FOR_IN_MESSAGES,
Boolean.FALSE);
+    	Parameter disabled = new Parameter(AddressingConstants.DISABLE_ADDRESSING_FOR_IN_MESSAGES,
"false");
     	String addressingRequired = AddressingConstants.ADDRESSING_UNSPECIFIED;
     	
     	if (addressing != null && submissionAddressing != null) {
@@ -88,7 +90,7 @@
             		addressingRequired = AddressingConstants.ADDRESSING_REQUIRED;
             }
             else {
-            	disabled.setValue(Boolean.TRUE);
+            	disabled.setValue("true");
             }
     	}
     	else if (addressing != null) {
@@ -129,7 +131,8 @@
     		service.addParameter(disabled);
     		AddressingHelper.setAddressingRequirementParemeterValue(service, addressingRequired);
             
-    		if (!(Boolean)disabled.getValue()) {
+            String value = Utils.getParameterValue(disabled);
+    		if (JavaUtils.isFalseExplicitly(value)) {
     			ServiceDescription sd = endpointDescription.getServiceDescription();
     			AxisConfiguration axisConfig = sd.getAxisConfigContext().getAxisConfiguration();
     			if (!axisConfig.isEngaged(Constants.MODULE_ADDRESSING))



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message