Ignore:
Timestamp:
2016-01-01T12:07:51+01:00 (4 years ago)
Author:
simon04
Message:

fix #12265 - Use HttpClient for imagery requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r9230 r9232  
    310310         * Returns the {@code Content-Encoding} header.
    311311         * @return {@code Content-Encoding} HTTP header
     312         * @see HttpURLConnection#getContentEncoding()
    312313         */
    313314        public String getContentEncoding() {
     
    324325
    325326        /**
     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        /**
    326347         * Returns the {@code Content-Length} header.
    327348         * @return {@code Content-Length} HTTP header
     349         * @see HttpURLConnection#getContentLengthLong()
    328350         */
    329351        public long getContentLength() {
     
    343365
    344366        /**
    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
    348369         * @see HttpURLConnection#getHeaderFields()
    349          * @since 9172
    350          */
    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();
    353374        }
    354375
Note: See TracChangeset for help on using the changeset viewer.