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 sa...@apache.org on 2005/05/12 06:26:10 UTC

svn commit: r169756 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java

Author: sanjiva
Date: Wed May 11 21:26:08 2005
New Revision: 169756

URL: http://svn.apache.org/viewcvs?rev=169756&view=rev
Log:
removed getLastInMessageContext - that's not needed any more because
the copying of ReplyTo to To etc. is going to be done by the MEP-
specific message receiver and not the addressing handler.

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java?rev=169756&r1=169755&r2=169756&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java Wed May 11 21:26:08 2005
@@ -155,21 +155,7 @@
         }
     }
 
-    /**
-     * Returns the last message which came into the OperationContext. This is
-     * useful for the WS-Addressing module for example to be figure out where to
-     * get the ReplyTo information etc. from. Note that while its trivial to
-     * implement this for the MEPs supported by this particular
-     * OperationContext, a more complicated MEP could require a hairy
-     * implementation (or may make you bald).
-     *
-     * @return the last message coming into the operation.
-     */
-    public MessageContext getLastInMessageContext() {
-        return inMessageContext;
-    }
-
-    /**
+   /**
      * Checks to see if the MEP is complete. i.e. whether all the messages that
      * are associated with the MEP has arrived and MEP is complete.
      *



Re: [Axis2] Re: svn commit: r169756 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java

Posted by Glen Daniels <gl...@thoughtcraft.com>.
Sanjiva Weerawarana wrote:
>>We still do need some way of getting, not necessarily the "last in", but 
>>in general the "already done" MessageContexts for an active Operation, 
>>right?  So various handlers on the response chain, say, can look at 
>>properties from the request message....
> 
> Yes .. but we have a way to get this:
>     OperationContext.getMessageContext (messageLabel)
> 
> You can give the message label from the MEP and get whichever MC you
> want.

That's great, bueno.

--Glen

Re: [Axis2] Re: svn commit: r169756 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Hi Glen,

> We still do need some way of getting, not necessarily the "last in", but 
> in general the "already done" MessageContexts for an active Operation, 
> right?  So various handlers on the response chain, say, can look at 
> properties from the request message....

Yes .. but we have a way to get this:
    OperationContext.getMessageContext (messageLabel)

You can give the message label from the MEP and get whichever MC you
want.

Sanjiva.



[Axis2] Re: svn commit: r169756 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java

Posted by Glen Daniels <gl...@thoughtcraft.com>.
We still do need some way of getting, not necessarily the "last in", but 
in general the "already done" MessageContexts for an active Operation, 
right?  So various handlers on the response chain, say, can look at 
properties from the request message....

--Glen

sanjiva@apache.org wrote:
> Author: sanjiva
> Date: Wed May 11 21:26:08 2005
> New Revision: 169756
> 
> URL: http://svn.apache.org/viewcvs?rev=169756&view=rev
> Log:
> removed getLastInMessageContext - that's not needed any more because
> the copying of ReplyTo to To etc. is going to be done by the MEP-
> specific message receiver and not the addressing handler.
> 
> Modified:
>     webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java
> 
> Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java
> URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java?rev=169756&r1=169755&r2=169756&view=diff
> ==============================================================================
> --- webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java (original)
> +++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/context/OperationContext.java Wed May 11 21:26:08 2005
> @@ -155,21 +155,7 @@
>          }
>      }
>  
> -    /**
> -     * Returns the last message which came into the OperationContext. This is
> -     * useful for the WS-Addressing module for example to be figure out where to
> -     * get the ReplyTo information etc. from. Note that while its trivial to
> -     * implement this for the MEPs supported by this particular
> -     * OperationContext, a more complicated MEP could require a hairy
> -     * implementation (or may make you bald).
> -     *
> -     * @return the last message coming into the operation.
> -     */
> -    public MessageContext getLastInMessageContext() {
> -        return inMessageContext;
> -    }
> -
> -    /**
> +   /**
>       * Checks to see if the MEP is complete. i.e. whether all the messages that
>       * are associated with the MEP has arrived and MEP is complete.
>       *
> 
>