Commit Graph

1839 Commits

Author SHA1 Message Date
Oleg Kalnichevski 3d34035b17 Fixed style check violations (tabs introduced by a previous commit)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433610 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 20:08:10 +00:00
Gary D. Gregory 276a9c4597 Add final modifier to method parameters.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433569 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 18:29:58 +00:00
Gary D. Gregory 917145dbd3 Convert control statement bodies to block.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433390 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:12:01 +00:00
Gary D. Gregory 2c0be950d8 Small edits to release notes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433388 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:06:32 +00:00
Oleg Kalnichevski d4dc9e1ac7 Moved internal exec chain classes and interfaces
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432732 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:41 +00:00
Oleg Kalnichevski 19c10ca488 Fixed style check violations (tabs introduced by a previous commit)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432730 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:07 +00:00
Oleg Kalnichevski 6a8961cc29 Renamed ConnectionReleaseTriggerImpl to ConnectionHolder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432677 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 17:56:11 +00:00
Gary D. Gregory 3a073e8ed8 Add final modifier to private fields.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432552 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:49:33 +00:00
Gary D. Gregory 323adda52e Add missing '@Override' annotations.
Add missing '@Deprecated' annotations.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432551 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:46:54 +00:00
Gary D. Gregory 25d752996e Convert 'for' loops to enhanced 'for' loops.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432550 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:44:50 +00:00
Oleg Kalnichevski a97d088847 Minor tweaks in the connection management code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432452 13f79535-47bb-0310-9956-ffa450edef68
2013-01-12 15:25:59 +00:00
Oleg Kalnichevski f5a8aa7ba9 Updated release notes for HttpClient 4.3-alpha1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432071 13f79535-47bb-0310-9956-ffa450edef68
2013-01-11 14:47:42 +00:00
Oleg Kalnichevski 4e50149ac6 Minor API tweaks; expanded ClientConfiguration example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432030 13f79535-47bb-0310-9956-ffa450edef68
2013-01-11 13:11:48 +00:00
Karl Wright 4a9f0a6ebb Second fix for HTTPCLIENT-1296. Include Oleg's suggestions as to a better way to obtain a port from the non-existent target.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1431285 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 11:27:36 +00:00
Karl Wright a7984199d7 Fix for HTTPCLIENT-1296. Change where the virtual host is evaluated until after we figure out the target in the absence of a virtual host.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1431183 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 02:47:32 +00:00
Oleg Kalnichevski 40bf945d04 Small tweaks to MinimalHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430867 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 14:12:11 +00:00
Oleg Kalnichevski aa92e0e96d Integration tests for the minimal HttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430866 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 14:05:38 +00:00
Oleg Kalnichevski 4136406ac8 HTTPCLIENT-1290: 304 cached response never reused with If-modified-since conditional requests
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430245 13f79535-47bb-0310-9956-ffa450edef68
2013-01-08 12:16:00 +00:00
Oleg Kalnichevski 6ceddc02e0 HTTPCLIENT-1291: Absolute request URIs without an explicitly specified path are rewritten to have / path
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430008 13f79535-47bb-0310-9956-ffa450edef68
2013-01-07 21:06:35 +00:00
Oleg Kalnichevski 4232febf63 Reworked proxy configuration; more test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1429930 13f79535-47bb-0310-9956-ffa450edef68
2013-01-07 18:22:35 +00:00
Oleg Kalnichevski b6ef9a74a3 Updated HttpClient build instructions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1429593 13f79535-47bb-0310-9956-ffa450edef68
2013-01-06 20:34:07 +00:00
Oleg Kalnichevski b15a62f70d Updated ClientWithResponseHandler example; added ClientConfiguration example; added overloaded constructors to a number of default impl classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1429548 13f79535-47bb-0310-9956-ffa450edef68
2013-01-06 16:13:33 +00:00
Oleg Kalnichevski 8155bab28d Added static #copy method to config classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1428925 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 15:22:30 +00:00
Oleg Kalnichevski d38d340a1e Fixed a problem introduced by the previous commit: abort lock needs to be created new when the object is cloned
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427777 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 13:04:48 +00:00
Oleg Kalnichevski fbb5561603 HTTPCLIENT-1288: moved HttpExecutionAware implementation code to AbstractExecutionAwareRequest class
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427723 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 10:12:59 +00:00
Oleg Kalnichevski c02e1b3f75 HTTPCLIENT-1287: DefaultUserTokenHandler#getUserToken to check if the connection is open prior to retrieving SSLSession.
Contributed by Noah Levitt <nlevitt at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427541 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 19:28:20 +00:00
Oleg Kalnichevski 9ec0c13594 HTTPCLIENT-1286: Request URI rewriting is inconsistent - URI fragments are not removed from absolute request URIs.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427482 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 17:26:08 +00:00
Oleg Kalnichevski de45d141cb HTTPCLIENT-1285: fixed inconsistent handling of default request config; added test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427178 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 17:04:50 +00:00
Oleg Kalnichevski c2dd3ccc44 HTTPCLIENT-1285: request configuration in the context to remain unchanged if not explicitly overridden by the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426771 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 15:28:04 +00:00
Oleg Kalnichevski 712cafd1e9 Added method to create minimal HttpClient with a custom connection manager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426535 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:59:41 +00:00
Oleg Kalnichevski d695c0e8b6 Updated multipart POST example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426534 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:59:30 +00:00
Oleg Kalnichevski 1db3da376e tabs -> spaces; removed trailing whilespaces; updated stylecheck definitions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426529 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:48:57 +00:00
Oleg Kalnichevski 1c322eb843 Added minimal style checks: licence header, file length, illegal imports
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426521 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:36:14 +00:00
Oleg Kalnichevski 9d3171f15e HTTPCLIENT-1253: RequestBuilder to support request parameters that can be transmitted either in the request body or in the request URI depending on composition of the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426353 13f79535-47bb-0310-9956-ffa450edef68
2012-12-27 22:26:53 +00:00
Karl Wright 9c0a28cd6c Use flags comparable to those used by IE 9. Test on all settings of the LAN Manager Authentication Security Level policy. Part of HTTPCLIENT-1268.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1425330 13f79535-47bb-0310-9956-ffa450edef68
2012-12-22 18:26:38 +00:00
Oleg Kalnichevski 41e08bfa52 Added minimal HttpClient implementation (no redirects, auth, state management and proxy support)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424934 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 14:34:26 +00:00
Oleg Kalnichevski e99b061a95 HTTPCLIENT-900: Don't enforce URI syntax for messages with an explicit target host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424591 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 17:05:07 +00:00
Oleg Kalnichevski 38e6a997fc HTTPCLIENT-1250: Allow query string to be ignored when determining cacheability for HTTP 1.0 responses
Contributed by Don Brown <mrdon at twdata.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424589 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 16:56:41 +00:00
Oleg Kalnichevski e798d4947c HTTPCLIENT-1284: HttpClient incorrectly generates Host header when physical connection route differs from the host name specified in the request URI
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424448 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 13:05:41 +00:00
Oleg Kalnichevski f492a000e7 Kerberos and SPNego auth schemes use incorrect authorization header name when authenticating with a proxy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424447 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 13:04:50 +00:00
Karl Wright b0090c516f Fix Type3 message assembly problem, part of HTTPCLIENT-1268.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424351 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 07:14:03 +00:00
Oleg Kalnichevski b6d7989aae Authmatically shut down file system based cache storage instantiated by CachingHttpClientBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423960 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 17:12:03 +00:00
Karl Wright ba065fca60 Use Locale.US instead of Locale.ROOT to make jdk 1.5 happy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423842 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 12:32:26 +00:00
Karl Wright 093284e54a Fix for HTTPCLIENT-1283.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423832 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 11:34:58 +00:00
Oleg Kalnichevski 01a7e66d7b HTTPCLIENT-1281: GzipDecompressingEntity#getContent() to close wrapped entity's stream in case of an I/O error
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423807 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 09:46:31 +00:00
Oleg Kalnichevski 877970d7d8 Use Asserts to verify object state (follow-up)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423806 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 09:45:50 +00:00
Oleg Kalnichevski d72e9b3ae7 Use Asserts to verify object state; use Args to verify method arguments
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423516 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 16:22:58 +00:00
Karl Wright b284816743 Another fix related to HTTPCLIENT-1268. Get flags for when to send NTLMv2 response correct.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423314 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 08:14:25 +00:00
Oleg Kalnichevski 2aa1fc1400 HTTPCLIENT-1279: Target host responding with status 407 (proxy authentication required) causes an NPE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423172 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 21:51:42 +00:00
Oleg Kalnichevski 12d11324c0 HTTPCLIENT-1280: CachingExec catches SocketTimeoutException silently and closes the backend InputStream
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423024 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 17:11:36 +00:00