Commit Graph

726 Commits

Author SHA1 Message Date
Oleg Kalnichevski 6d0c809900 Resolved a long standing problem with HttpClient not taking into account the user context when pooling / re-using connections. HttpClient now correctly handles stateful / user specific connections such as persistent NTLM connections and SSL connections with client side authentication.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658759 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:06:17 +00:00
Oleg Kalnichevski db8947ac50 Credentials interface changed to make use of standard java.security.Princinal to identify a user
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658430 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 21:04:27 +00:00
Oleg Kalnichevski c9a4970c10 HTTPCLIENT-773: Improved handling of the 'expires' attribute by the 'Best Match' cookie spec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@657334 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 11:44:16 +00:00
Oleg Kalnichevski 14d0e406a3 Added document on NTLM support; ported HTTP client programming primer from WIKI
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@657143 13f79535-47bb-0310-9956-ffa450edef68
2008-05-16 17:35:13 +00:00
Oleg Kalnichevski 4022a78140 Added NTLM_SUPPORT.txt document describing steps necessary to NTLM enable Httpclient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655311 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 13:01:02 +00:00
Oleg Kalnichevski 5a96d1f218 Fixed the use of Lists with generics
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655107 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 15:20:42 +00:00
Sebastian Bazley bf5d268ceb Exception not thrown here
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655094 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 14:34:58 +00:00
Oleg Kalnichevski 7257687690 Partial support for NTLM authentication. NTLM auth scheme must be provided with a concrete implementation NTLMEngine interface in order to work. Documentation to follow.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655048 13f79535-47bb-0310-9956-ffa450edef68
2008-05-10 11:22:12 +00:00
Oleg Kalnichevski e4f8eee752 * Redesigned the way the local execution context is handled: If a custom context is given, it gets wrapped with the DefaultedHttpContext that defaults to the parent execution context containing default values of all mandatory execution attributes. Therefore the local context can now contain only those attributes the user wishes to override. There is no longer a need to populate the local context with all mandatory attributes.
* Added a new context parameter for preferred auth schemes 

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@654886 13f79535-47bb-0310-9956-ffa450edef68
2008-05-09 17:06:12 +00:00
Oleg Kalnichevski 8c8174514e Factored out AuthSchemeBase class from RFC2617Scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653867 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:17:29 +00:00
Oleg Kalnichevski b418ac5e2c * Refactored UsernamePasswordCredentials and NTCredentials (copied from HttpClient 3.1 code line)
* Added test coverage

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653864 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:12:39 +00:00
Oleg Kalnichevski 9b340a0559 Generate source jars in the build phase; Upgrade HttpCore dependency to 4.0-beta2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653860 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:00:39 +00:00
Oleg Kalnichevski 879988b8e5 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653243 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 16:20:15 +00:00
Oleg Kalnichevski 4170b63b9b [maven-release-plugin] prepare release 4.0-alpha4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653241 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 16:20:01 +00:00
Sebastian Bazley cb7a2ce8bd Add missing Override markers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653214 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 14:12:13 +00:00
Sebastian Bazley f9af4f86e9 Ignore Eclipse settings
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653213 13f79535-47bb-0310-9956-ffa450edef68
2008-05-04 14:05:40 +00:00
Oleg Kalnichevski 4cc2ba25c4 HTTPCLIENT-771: Fixed ConcurrentModificationException in RequestAddCookies protocol interceptor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653051 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 11:09:46 +00:00
Oleg Kalnichevski 52747e3afb Fixed typo on the index page
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653047 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 10:53:26 +00:00
Oleg Kalnichevski aff60e4629 HTTPCLIENT-770: code cleanups
Contributed by Paul Lindner <lindner at inuus.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@653041 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 10:39:28 +00:00
Sebastian Bazley 257a0ee548 Javadoc tweaks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652960 13f79535-47bb-0310-9956-ffa450edef68
2008-05-03 00:54:30 +00:00
Sebastian Bazley 5eedce1de8 HTTPCLIENT-765 - String.toLowerCase() / toUpperCase() should specify Locale.ENGLISH
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652952 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:52:56 +00:00
Sebastian Bazley 17bacf5e7f HTTPCLIENT-765 - String.toLowerCase() / toUpperCase() should specify Locale.ENGLISH
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652950 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:49:48 +00:00
Sebastian Bazley f761a17460 Make field final so it's published to all threads
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652947 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:15:40 +00:00
Oleg Kalnichevski 18ee596a4d HTTPCLIENT-769: Do not pool connection marked non-reusable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652945 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:10:20 +00:00
Oleg Kalnichevski 70ec62d7c4 Reverted version tag back to 4.0-alpha4-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652937 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 22:50:02 +00:00
Sebastian Bazley 2b96bbd678 Make field final so it is guaranteed to be published
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652728 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 01:28:39 +00:00
Sebastian Bazley 4794436347 Make instance fields final so they are guaranteed to be published
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652726 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 01:16:51 +00:00
Sebastian Bazley 0f26ebe939 Make field final so it is guaranteed to be published
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652721 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 00:32:20 +00:00
Oleg Kalnichevski 56477b27b5 [maven-release-plugin] prepare for next development iteration
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652460 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 09:39:24 +00:00
Oleg Kalnichevski a4d0a8c7d2 [maven-release-plugin] prepare release 4.0-alpha4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652458 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 09:39:09 +00:00
Oleg Kalnichevski eea2c52630 Minor change in the release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652457 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 09:33:07 +00:00
Sebastian Bazley 00437f69cd Spurious ;
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652200 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:22:43 +00:00
Sebastian Bazley f2df94048f managedConn cannot be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652197 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:15:27 +00:00
Sebastian Bazley 552385da13 Remove redundant assignment
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652196 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:15:21 +00:00
Sebastian Bazley 5b42ae8fd0 Remove redundant assignment
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652195 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:15:16 +00:00
Sebastian Bazley 41af181267 schm cannot be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652193 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:10:36 +00:00
Sebastian Bazley 96405703fa Javadoc correction
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652192 13f79535-47bb-0310-9956-ffa450edef68
2008-04-30 00:04:59 +00:00
Oleg Kalnichevski 88013c6596 Removed inception year tag from module poms
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652155 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 21:34:26 +00:00
Sebastian Bazley 4419c91e65 Ensure correct socket variable is used; rename sslock => sslsock
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652153 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 21:33:59 +00:00
Sebastian Bazley bdfd6701cf HTTPCLIENT-767 - Static variables need to be final (or access should be synchronised)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652094 13f79535-47bb-0310-9956-ffa450edef68
2008-04-29 20:44:03 +00:00
Oleg Kalnichevski 4134be62ad Fixed inception year; upgraded JUnit to version 3.8.2
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652021 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 21:29:04 +00:00
Oleg Kalnichevski e9f73a72b7 HTTPCLIENT-764: javadoc improvements
Contributed by Sam Berlin <sberlin at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652020 13f79535-47bb-0310-9956-ffa450edef68
2008-04-27 21:23:31 +00:00
Oleg Kalnichevski ff21903817 Damn!
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651815 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 11:14:43 +00:00
Oleg Kalnichevski 33412bae99 Added missing AL header
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651814 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 11:00:53 +00:00
Oleg Kalnichevski 9b3fc0bca1 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651813 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 10:43:34 +00:00
Oleg Kalnichevski f8d37586d0 Updated download page for HttpClient 4.0-alpha4 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651811 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 09:57:15 +00:00
Oleg Kalnichevski 67c6704035 Updated release notes for HttpClient 4.0-alpha4 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651810 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 09:55:02 +00:00
Oleg Kalnichevski e418175d2b * Fixed connection auto release problem with BasicManagedEntity#writeTo
* Added connection auto release test cases

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651809 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 09:51:23 +00:00
Oleg Kalnichevski 769484f71e Copy request headers from the original request to the redirected request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651072 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 21:32:33 +00:00
Oleg Kalnichevski e487e799c2 Rewrite the redirect URI only if it contains a fragment part
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650988 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 18:29:05 +00:00