Changeset 9173 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-12-26T23:42:05+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9172 r9173 27 27 * Provides a uniform access for a HTTP/HTTPS server. This class should be used in favour of {@link HttpURLConnection}. 28 28 */ 29 public class HttpClient { 29 public final class HttpClient { 30 30 31 31 private URL url; … … 121 121 * A wrapper for the HTTP response. 122 122 */ 123 public static class Response { 123 public static final class Response { 124 124 private final HttpURLConnection connection; 125 125 private final int responseCode; … … 213 213 * Fetches the HTTP response as String. 214 214 * @return the response 215 * @throws IOException216 215 */ 217 216 public String fetchContent() throws IOException { … … 352 351 * Sets whether not to set header {@code Connection=close} 353 352 * <p/> 354 * This might fix #7640, see <a href='https://web.archive.org/web/20140118201501/http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive'>here</a>. 353 * This might fix #7640, see 354 * <a href='https://web.archive.org/web/20140118201501/http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive'>here</a>. 355 355 * 356 356 * @param keepAlive whether not to set header {@code Connection=close}
Note:
See TracChangeset
for help on using the changeset viewer.