axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r766371 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
Date Sat, 18 Apr 2009 18:31:08 GMT
Author: veithen
Date: Sat Apr 18 18:31:07 2009
New Revision: 766371

URL: http://svn.apache.org/viewvc?rev=766371&view=rev
Log:
Improved Javadoc and removed unnecessary cast.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java?rev=766371&r1=766370&r2=766371&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
Sat Apr 18 18:31:07 2009
@@ -266,9 +266,14 @@
 
 
     /**
-     * @param messageLabel
-     * @return Returns MessageContext.
-     * @throws AxisFault
+     * Get the message context identified by a given label.
+     * 
+     * @param messageLabel The label of the message context to retrieve.
+     *                     This should be one of the <code>MESSAGE_LABEL_xxx</code>
constants
+     *                     defined in {@link WSDLConstants}.
+     * @return the message context for the given label, or <code>null</code>
if no
+     *         message context was found
+     * @throws AxisFault never
      */
     public MessageContext getMessageContext(String messageLabel)
             throws AxisFault {
@@ -276,7 +281,7 @@
             return null;
         }
 
-        return (MessageContext) messageContexts.get(messageLabel);
+        return messageContexts.get(messageLabel);
 
     }
 



Mime
View raw message