equal
deleted
inserted
replaced
107 * Some implementations may treat the <code>0</code><sup>th</sup> |
107 * Some implementations may treat the <code>0</code><sup>th</sup> |
108 * header field as special, i.e. as the status line returned by the HTTP |
108 * header field as special, i.e. as the status line returned by the HTTP |
109 * server. In this case, {@link #getHeaderField(int) getHeaderField(0)} returns the status |
109 * server. In this case, {@link #getHeaderField(int) getHeaderField(0)} returns the status |
110 * line, but <code>getHeaderFieldKey(0)</code> returns null. |
110 * line, but <code>getHeaderFieldKey(0)</code> returns null. |
111 * |
111 * |
112 * @param n an index, where n >=0. |
112 * @param n an index, where {@code n >=0}. |
113 * @return the key for the <code>n</code><sup>th</sup> header field, |
113 * @return the key for the <code>n</code><sup>th</sup> header field, |
114 * or <code>null</code> if the key does not exist. |
114 * or <code>null</code> if the key does not exist. |
115 */ |
115 */ |
116 public String getHeaderFieldKey (int n) { |
116 public String getHeaderFieldKey (int n) { |
117 return null; |
117 return null; |
258 * <p> |
258 * <p> |
259 * This method can be used in conjunction with the |
259 * This method can be used in conjunction with the |
260 * {@link #getHeaderFieldKey getHeaderFieldKey} method to iterate through all |
260 * {@link #getHeaderFieldKey getHeaderFieldKey} method to iterate through all |
261 * the headers in the message. |
261 * the headers in the message. |
262 * |
262 * |
263 * @param n an index, where n>=0. |
263 * @param n an index, where {@code n>=0}. |
264 * @return the value of the <code>n</code><sup>th</sup> header field, |
264 * @return the value of the <code>n</code><sup>th</sup> header field, |
265 * or <code>null</code> if the value does not exist. |
265 * or <code>null</code> if the value does not exist. |
266 * @see java.net.HttpURLConnection#getHeaderFieldKey(int) |
266 * @see java.net.HttpURLConnection#getHeaderFieldKey(int) |
267 */ |
267 */ |
268 public String getHeaderField(int n) { |
268 public String getHeaderField(int n) { |