You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2008/01/24 11:30:12 UTC

svn commit: r614835 - /webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java

Author: davidillsley
Date: Thu Jan 24 02:30:12 2008
New Revision: 614835

URL: http://svn.apache.org/viewvc?rev=614835&view=rev
Log:
Move disable refparam checks to the Handler init()

Modified:
    webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java

Modified: webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java?rev=614835&r1=614834&r2=614835&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java (original)
+++ webservices/axis2/trunk/java/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java Thu Jan 24 02:30:12 2008
@@ -33,6 +33,7 @@
 import org.apache.axis2.addressing.RelatesTo;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.HandlerDescription;
 import org.apache.axis2.description.Parameter;
 import org.apache.axis2.handlers.AbstractHandler;
 import org.apache.axis2.util.JavaUtils;
@@ -52,16 +53,20 @@
 
     private static final Log log = LogFactory.getLog(AddressingInHandler.class);
 
-    public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
-        // check whether to process reference parameters.
-        Parameter param = msgContext.getParameter(DISABLE_REF_PARAMETER_EXTRACT);
+    private boolean disableRefparamExtract = false;
+    
+    public void init(HandlerDescription handlerdesc){
+    	super.init(handlerdesc);
+    	// check whether to process reference parameters.
+        Parameter param = handlerdesc.getParameter(DISABLE_REF_PARAMETER_EXTRACT);
         String value = Utils.getParameterValue(param);
-        boolean disableRefparamExtract = JavaUtils.isTrueExplicitly(value);
-
+        disableRefparamExtract = JavaUtils.isTrueExplicitly(value);
         if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) {
             log.debug("disableRefparamExtract=" + disableRefparamExtract);
         }
-
+    }
+    
+    public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
         SOAPHeader header = msgContext.getEnvelope().getHeader();
         RolePlayer rolePlayer = (RolePlayer) msgContext.getConfigurationContext()
                 .getAxisConfiguration().getParameterValue(Constants.SOAP_ROLE_PLAYER_PARAMETER);



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