Commit Graph

466 Commits

Author SHA1 Message Date
Oleg Kalnichevski a8d2e5e5fa Added release version to deprecation annotations; removed references to deprecated methods / classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:06:11 +00:00
Oleg Kalnichevski aa412a29b9 Deprecated DefaultResponseParser in favor of DefaultHttpResponseParser
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334646 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:41:38 +00:00
Oleg Kalnichevski bfe3b7201f Added getters to URIBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334634 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:17:01 +00:00
Oleg Kalnichevski 6920b38823 UrlEncodedFormEntity constructors added in 4.2 no longer throw UnsupportedEncodingException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334630 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 13:58:20 +00:00
Oleg Kalnichevski 93296a4779 Upgraded to HttpCore 4.2; Fixed compile errors caused by API breakage (HTTPCLIENT-1189)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334436 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 15:53:45 +00:00
Oleg Kalnichevski 63d06f06cd HTTPCLIENT-1186: State of newly created connections in the connection pool is not always correctly updated potentially allowing those connections to be leased to users with a different security context
Contributed by Ralf Pöhlmann <rpn at methodpark.de>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1329811 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 15:55:07 +00:00
Oleg Kalnichevski 9366926296 Renamed CompressionDecorator to DecompressingHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311967 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 20:19:20 +00:00
Oleg Kalnichevski 26241e51e2 HTTPCLIENT-1180: Fixed NPE in ClientGZipContentCompression sample
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311952 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:36:49 +00:00
Oleg Kalnichevski a9c95e057f HTTPCLIENT-1182: constructor to org.apache.http.conn.ssl.SSLSocketFactory to allow for directly wrapping a javax.net.ssl.SSLSocketFactory socketfactory
Contributed by Mark Claassen <mclaassen at ocie.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311941 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:22:40 +00:00
Oleg Kalnichevski db9f011a83 SSLSocketFactory to use javax.net.ssl.SSLSocketFactory#createSocket() instead of new Socket()
Contributed by Mark Claassen <mac01at donnell.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311409 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 20:10:18 +00:00
Oleg Kalnichevski be6347aef0 HTTPCLIENT-1177: always remove fragments from request URIs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311382 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:18:35 +00:00
Oleg Kalnichevski 0cea739a38 Removed references to deprecated API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311381 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:17:51 +00:00
Oleg Kalnichevski d544026bee BasicManagedEntity#streamClosed no longer propagates SocketException if the underlying connection has been shut down
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1307766 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 11:16:45 +00:00
Oleg Kalnichevski 218edab9fd Un-deprecated #parse method that takes Scanner as a parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302482 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 14:47:44 +00:00
Oleg Kalnichevski 5e0e2efe13 Optimized URLEncodedUtils#parse(HttpEntity) method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302360 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 10:33:16 +00:00
Jonathan Moore 3f99045e4f HTTPCLIENT-1164: If we uncompress an entity on-the-fly, we should
also remove its Content-MD5 header, as it will likely no longer be
accurate, and an upstream consumer may incorrectly reject the
response on that basis. This way the decorator preserves semantic
transparency.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301572 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 15:01:27 +00:00
Jonathan Moore 54c7e992fb HTTPCLIENT-1164: Implemented a new CompressionDecorator aimed at replacing
the ContentEncodingHttpClient. This reuses the same request/response
interceptors with some minor additions to make the resulting response
semantically consistent (i.e. if a response is uncompressed, we mark the
entity as having an unknown length and remove the Content-Length header
before passing the response upstream). This allows the CompressionDecorator
and CachingHttpClient to be wired around a DefaultHttpClient in either order
and still get cache hits, depending on whether you want to cache compressed
or uncompressed bodies.

Minor change to ResponseContentEncoding to set a context variable that the
uncompression was applied. Only other change was to deprecate the
ContentEncodingHttpClient.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301090 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 17:02:07 +00:00
Oleg Kalnichevski cef44fa283 Better SSL initialization for fluent Executor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1299041 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 20:42:32 +00:00
Oleg Kalnichevski a32899e446 ClientPNames.VIRTUAL_HOST has no effect if set at the client level
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1296612 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 12:28:59 +00:00
Oleg Kalnichevski b90f31138c Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294612 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 12:16:20 +00:00
Oleg Kalnichevski 3d2b0023fe It is legal for AuthScheme to be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294348 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 21:44:50 +00:00
Oleg Kalnichevski 647e4dc314 HTTPCLIENT-1166: more tolerant parsing logic for malformed uris with invalid authority part
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1244105 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 16:12:02 +00:00
Oleg Kalnichevski d87d45a618 HTTPCLIENT-1166: added more tests for URIUtils#extractHost
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243989 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 15:24:18 +00:00
Oleg Kalnichevski eac4ae43a7 Fixed problem with the system SSL context initialization (seems to affect Windows only)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243661 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 19:19:35 +00:00
Oleg Kalnichevski d969fe8774 HTTPCLIENT-1162: do not override 'Accept-Encoding' header if already present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242782 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 14:14:30 +00:00
Oleg Kalnichevski 747593abb7 Upgraded project version to 4.2-beta2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242454 13f79535-47bb-0310-9956-ffa450edef68
2012-02-09 18:40:08 +00:00
Sebastian Bazley ca66db5ade Remove svn:executable prop
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1241167 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 20:40:12 +00:00
Oleg Kalnichevski 39117086b3 HTTPCLIENT-1160: Deprecated LayeredSchemeSocketFactory in favor of SchemeLayeredSocketFactory whose #createLayeredSocket() method takes HttpParams as an additional parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240721 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 13:18:02 +00:00
Oleg Kalnichevski 24b8a78846 Upgraded to HttpCore 4.2-beta1
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239223 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 17:36:32 +00:00
Oleg Kalnichevski 64e56ef29c Added an option to initalize BASIC and DIGEST schemes in a particular challenge state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235752 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:17:37 +00:00
Oleg Kalnichevski 67d45c0d06 Updated Kerberos example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235751 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:16:29 +00:00
Oleg Kalnichevski 9867254c97 HTTPCLIENT-1156: Refactored NegotiateScheme into separate SPNegoScheme and KerberosScheme implementations; deprecated NegotiateScheme and related classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233319 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:33:51 +00:00
Oleg Kalnichevski 74e1be5ca8 HTTPCLIENT-1159: HttpClientUtils - helper methods to release resources held by HttpClient / HttpResponse after use
Contributed by Karthik K <oss.akk at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233307 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:15:48 +00:00
Oleg Kalnichevski fcf77abb6c HTTPCLIENT-1158: fixed typo
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232915 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 14:46:25 +00:00
Oleg Kalnichevski 3b8726022b Added convenience #create methods to UrlEncodedFormEntity
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1231075 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 14:05:24 +00:00
Oleg Kalnichevski 46bcf3acf7 Replaced deprecated method calls
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1228888 13f79535-47bb-0310-9956-ffa450edef68
2012-01-08 16:34:06 +00:00
Oleg Kalnichevski 8f767628cf HTTPCLIENT-1155: CachingHttpClient fails to ensure that the response content gets fully consumed when using a ResponseHandler, which can potentially lead to connection leaks
Contributed by James Miller <jamesmiller01 at gmail dot com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1222845 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 20:59:54 +00:00
Oleg Kalnichevski 5dffa49321 Corrected debug log message
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197196 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 16:03:58 +00:00
Oleg Kalnichevski ae8e671030 HTTPCLIENT-1142: Infinite loop on NTLM authentication failure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197194 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 15:58:05 +00:00
Oleg Kalnichevski 7541429cf2 Upgraded project version to 4.2-alpha2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1196788 13f79535-47bb-0310-9956-ffa450edef68
2011-11-02 20:19:52 +00:00
Oleg Kalnichevski d7d7bb2bde Fixed javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:32:39 +00:00
Oleg Kalnichevski 732095943f Redesigned auth caching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182515 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 18:33:15 +00:00
Oleg Kalnichevski 4d1b157272 Updated AuthState API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182317 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 11:45:54 +00:00
Oleg Kalnichevski 9edd1acd4f HTTPCLIENT-1136: fixed synchronization problem in #releaseConnection method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181989 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:52:00 +00:00
Oleg Kalnichevski 2278378495 HTTPCLIENT-1129: Do not modify auth state on redirect if not redirecting to another host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181901 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:22:08 +00:00
Oleg Kalnichevski 09f10b0f6e Renamed test classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181740 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:43 +00:00
Oleg Kalnichevski 5d6404cbca BasicClientConnectionManager to replace SingleClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181739 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:20 +00:00
Oleg Kalnichevski 94dea64e63 HTTPCLIENT-1123: DNS resolver null parameter check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181737 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:09:55 +00:00
Oleg Kalnichevski 960ee2f581 HTTPCLIENT-1123: fixed broken PoolingClientConnectionManager constructor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181208 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:18:24 +00:00
Oleg Kalnichevski d1450f9071 HTTPCLIENT-1123: added @since 4.2 tag
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181192 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:03:53 +00:00