hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r610818 - /httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java
Date Thu, 10 Jan 2008 15:52:27 GMT
Author: olegk
Date: Thu Jan 10 07:52:25 2008
New Revision: 610818

URL: http://svn.apache.org/viewvc?rev=610818&view=rev
Log:
HTTPCORE-138: javadocs

Modified:
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java?rev=610818&r1=610817&r2=610818&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java
(original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/HttpMessage.java
Thu Jan 10 07:52:25 2008
@@ -72,11 +72,13 @@
     /**
      * Returns the first header with a specified name of this message. Header
      * values are ignored. If there is more than one matching header in the
-     * message the first element of
+     * message the first element of {@link #getHeaders(String)} is returned.
+     * If there is no matching header in the message <code>null</code> is 
+     * returned.
      * 
-     * {@link #getHeaders(String)} is returned.
      * @param name the name of the header to return.
-     * @return the first header whose name property equals <code>name</code>.
+     * @return the first header whose name property equals <code>name</code>
+     *   or <code>null</code> if no such header could be found.
      */
     Header getFirstHeader(String name);
 



Mime
View raw message