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 ve...@apache.org on 2009/04/18 20:31:08 UTC
svn commit: r766371 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/OperationContext.java
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);
}