Author: nthaker
Date: Mon Sep 20 22:00:50 2010
New Revision: 999132
URL: http://svn.apache.org/viewvc?rev=999132&view=rev
Log:
https://issues.apache.org/jira/browse/AXIS2-4824
Performance improvement patch for addressing, code contributed by Katherine
Sanders.
Modified:
axis/axis2/java/core/trunk/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Modified:
axis/axis2/java/core/trunk/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java?rev=999132&r1=999131&r2=999132&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
(original)
+++
axis/axis2/java/core/trunk/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java
Mon Sep 20 22:00:50 2010
@@ -64,13 +64,21 @@ public class AddressingOutHandler extend
private static final String MODULE_NAME = "addressing";
public InvocationResponse invoke(MessageContext msgContext) throws
AxisFault {
- //determine whether outbound addressing has been disabled or not.
- // Get default value from module.xml or axis2.xml files
- Parameter param = msgContext.getModuleParameter(
- DISABLE_ADDRESSING_FOR_OUT_MESSAGES, MODULE_NAME, handlerDesc);
- boolean disableAddressing =
- msgContext.isPropertyTrue(DISABLE_ADDRESSING_FOR_OUT_MESSAGES,
+ Parameter param = null;
+ boolean disableAddressing = false;
+
+ Object o = msgContext.getProperty(DISABLE_ADDRESSING_FOR_OUT_MESSAGES);
+ if (o == null || !(o instanceof Boolean)) {
+ //determine whether outbound addressing has been disabled or not.
+ // Get default value from module.xml or axis2.xml files
+ param =
msgContext.getModuleParameter(DISABLE_ADDRESSING_FOR_OUT_MESSAGES, MODULE_NAME,
handlerDesc);
+ disableAddressing =
+ msgContext.isPropertyTrue(DISABLE_ADDRESSING_FOR_OUT_MESSAGES,
JavaUtils.isTrueExplicitly(Utils.getParameterValue(param)));
+ } else {
+ Boolean bool = (Boolean)o;
+ disableAddressing = bool.booleanValue();
+ }
if (disableAddressing) {
if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) {