Changeset 9232 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-01-01T12:07:51+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9230 r9232 310 310 * Returns the {@code Content-Encoding} header. 311 311 * @return {@code Content-Encoding} HTTP header 312 * @see HttpURLConnection#getContentEncoding() 312 313 */ 313 314 public String getContentEncoding() { … … 324 325 325 326 /** 327 * Returns the {@code Expire} header. 328 * @return {@code Expire} HTTP header 329 * @see HttpURLConnection#getExpiration() 330 * @since 331 */ 332 public long getExpiration() { 333 return connection.getExpiration(); 334 } 335 336 /** 337 * Returns the {@code Last-Modified} header. 338 * @return {@code Last-Modified} HTTP header 339 * @see HttpURLConnection#getLastModified() 340 * @since 9232 341 */ 342 public long getLastModified() { 343 return connection.getLastModified(); 344 } 345 346 /** 326 347 * Returns the {@code Content-Length} header. 327 348 * @return {@code Content-Length} HTTP header 349 * @see HttpURLConnection#getContentLengthLong() 328 350 */ 329 351 public long getContentLength() { … … 343 365 344 366 /** 345 * Returns the list of Strings that represents the named header field values. 346 * @param name the name of a header field 347 * @return unmodifiable List of Strings that represents the corresponding field values 367 * Returns an unmodifiable Map mapping header keys to a List of header values. 368 * @return unmodifiable Map mapping header keys to a List of header values 348 369 * @see HttpURLConnection#getHeaderFields() 349 * @since 9 172350 */ 351 public List<String> getHeaderFields( String name) {352 return connection.getHeaderFields() .get(name);370 * @since 9232 371 */ 372 public Map<String, List<String>> getHeaderFields() { 373 return connection.getHeaderFields(); 353 374 } 354 375
Note:
See TracChangeset
for help on using the changeset viewer.