You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2008/07/08 23:53:18 UTC

svn commit: r674985 - in /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws: Constants.java handler/HandlerChainProcessor.java

Author: rott
Date: Tue Jul  8 14:53:18 2008
New Revision: 674985

URL: http://svn.apache.org/viewvc?rev=674985&view=rev
Log:
handler chain pre and post invoker classes may need more than just the handler MessageContext.  Original commit for this function was in SVN rev 630273.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/Constants.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/Constants.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/Constants.java?rev=674985&r1=674984&r2=674985&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/Constants.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/Constants.java Tue Jul  8 14:53:18 2008
@@ -47,4 +47,6 @@
      */
     public static final String JAXWS_ENABLE_JAXB_PAYLOAD_STREAMING = 
         "org.apache.axis2.jaxws.enableJAXBPayloadStreaming";
+    public static final String MEP_CONTEXT = 
+        "org.apache.axis2.jaxws.handler.MEPContext";
 }

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java?rev=674985&r1=674984&r2=674985&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/handler/HandlerChainProcessor.java Tue Jul  8 14:53:18 2008
@@ -19,6 +19,7 @@
 
 package org.apache.axis2.jaxws.handler;
 
+import org.apache.axis2.jaxws.Constants;
 import org.apache.axis2.jaxws.ExceptionFactory;
 import org.apache.axis2.jaxws.context.factory.MessageContextFactory;
 import org.apache.axis2.jaxws.handler.factory.HandlerPostInvokerFactory;
@@ -340,6 +341,11 @@
             if (log.isDebugEnabled()) {
                 log.debug("Invoking handleMessage on: " + handler.getClass().getName()); 
             }
+            
+            // The pre and post invokers will likely need more than just the handler message context.
+            // They may need access to the axis service object or description objects.
+            currentMC.put(Constants.MEP_CONTEXT, mepCtx);
+
             getPreInvoker().preInvoke(currentMC);
             boolean success = handler.handleMessage(currentMC);
             getPostInvoker().postInvoke(currentMC);