jdk/src/share/classes/java/net/URLConnection.java
changeset 18156 edb590d448c5
parent 14894 05fd2420efc0
child 19069 1d9cb0d080e3
equal deleted inserted replaced
18155:889970e5b728 18156:edb590d448c5
   660 
   660 
   661     /**
   661     /**
   662      * Returns the key for the <code>n</code><sup>th</sup> header field.
   662      * Returns the key for the <code>n</code><sup>th</sup> header field.
   663      * It returns <code>null</code> if there are fewer than <code>n+1</code> fields.
   663      * It returns <code>null</code> if there are fewer than <code>n+1</code> fields.
   664      *
   664      *
   665      * @param   n   an index, where n>=0
   665      * @param   n   an index, where {@code n>=0}
   666      * @return  the key for the <code>n</code><sup>th</sup> header field,
   666      * @return  the key for the <code>n</code><sup>th</sup> header field,
   667      *          or <code>null</code> if there are fewer than <code>n+1</code>
   667      *          or <code>null</code> if there are fewer than <code>n+1</code>
   668      *          fields.
   668      *          fields.
   669      */
   669      */
   670     public String getHeaderFieldKey(int n) {
   670     public String getHeaderFieldKey(int n) {
   678      * <p>
   678      * <p>
   679      * This method can be used in conjunction with the
   679      * This method can be used in conjunction with the
   680      * {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all
   680      * {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all
   681      * the headers in the message.
   681      * the headers in the message.
   682      *
   682      *
   683      * @param   n   an index, where n>=0
   683      * @param   n   an index, where {@code n>=0}
   684      * @return  the value of the <code>n</code><sup>th</sup> header field
   684      * @return  the value of the <code>n</code><sup>th</sup> header field
   685      *          or <code>null</code> if there are fewer than <code>n+1</code> fields
   685      *          or <code>null</code> if there are fewer than <code>n+1</code> fields
   686      * @see     java.net.URLConnection#getHeaderFieldKey(int)
   686      * @see     java.net.URLConnection#getHeaderFieldKey(int)
   687      */
   687      */
   688     public String getHeaderField(int n) {
   688     public String getHeaderField(int n) {