Oleg Kalnichevski
8a92c9712d
HTTPCLIENT-668: removed static loggers
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@673172 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 18:52:41 +00:00
Sam Berlin
55c231d227
fixed keep-alive problem reported by Paul Linder -- expired connections weren't accurately decrementing the total connection count, causing total-connection limits to gradually decay, stalling connections.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672973 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 01:49:10 +00:00
Sam Berlin
bf6371eae6
simplified idle duration to start counting when connection is released
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672969 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 01:09:50 +00:00
Oleg Kalnichevski
ea0e787fde
Added debug logs about ConnPoolByRoute internal state
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672853 13f79535-47bb-0310-9956-ffa450edef68
2008-06-30 18:13:07 +00:00
Sam Berlin
fb2af3f61f
expanded ClientResponseHandler javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672641 13f79535-47bb-0310-9956-ffa450edef68
2008-06-29 17:03:08 +00:00
Oleg Kalnichevski
149f5363d4
Added example demonstrating the use of the ClientResponseHandler interface
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672427 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 23:38:31 +00:00
Oleg Kalnichevski
96335cd101
Added ClientResponseHandler interface and new methods for the HttpClient interface as suggested by Bob Lee <crazybob at crazybob.org>
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672425 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 23:33:05 +00:00
Sam Berlin
dee6af01ad
simplified keep-alive support. changed ConnectionKeepAliveStrategy to return time in ms, instead of time & timeunit in two different calls. reverted ConnectionReleaseTrigger.releaseConnection to take zero params & instead added a setIdleDuration method to ManagedClientConnection, along with converting direct uses of ClientConnectionManager.releaseConnection to instead go through ManagedClientConnection.releaseConnection (which now uses the idle time when giving itself to the manager).
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@672367 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 19:49:20 +00:00
Oleg Kalnichevski
932d21df7b
HTTPCLIENT-781: made DefaultConnectionKeepAliveStrategy a little cleaner / more efficient
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@671953 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 17:12:45 +00:00
Sam Berlin
4752936837
HTTPCLIENT-781 -- respect keep-alive header.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@671717 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 04:03:24 +00:00
Oleg Kalnichevski
710c7d08f3
Upgraded HttpCore dependency to 4.0-beta2
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@670018 13f79535-47bb-0310-9956-ffa450edef68
2008-06-20 18:19:55 +00:00
Oleg Kalnichevski
96c32bc835
Use #createHttpContext() instead of new BasicHttpContext()
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@667772 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 11:01:24 +00:00
Oleg Kalnichevski
f267f66df9
Changed #rewriteRequestURI method visibility to protected
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@665917 13f79535-47bb-0310-9956-ffa450edef68
2008-06-09 22:07:49 +00:00
Sam Berlin
baaef5ace5
add HTTPCLIENT-779 change to release notes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664534 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 18:11:52 +00:00
Sam Berlin
284556d9be
HTTPCLIENT-779: toplevel exception cleanup. HttpClient.execute now only throws an IOException (and specific subtypes of that), and HttpGet/HttpPut and associated classes' String constructor now throw IllegalArgumentException instead of URISyntaxException.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664505 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 13:21:20 +00:00
Sam Berlin
13ba9862e0
add TestSCMWithServer to suite
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664384 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 21:07:47 +00:00
Sam Berlin
8c519d0928
give server some time to accept for testAbortAfterSocketConnect too
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664379 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 20:20:09 +00:00
Sam Berlin
fdb6ace290
add a delay before checking accepted connections
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664373 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 18:50:30 +00:00
Oleg Kalnichevski
df92be5902
Better code for handling of non-repeatable requests
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664326 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 11:48:27 +00:00
Oleg Kalnichevski
a25cb3c6c0
HttpClient will throw an exception if an attempt is made to retry a request with a non-repeatable request entity.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664066 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 18:13:18 +00:00
Oleg Kalnichevski
c4fd46d1f8
* Fixed bug introduced by my previous patch
...
* Optimized the way requests are re-tried. If a request is submitted over a direct connection, there is no need to regenerate the request wrapper and re-run protocol interceptors on it
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@662030 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 14:19:35 +00:00
Oleg Kalnichevski
650a04c734
Fixed request re-generation logic when retrying a failed request. Auto-generated headers will no accumulate.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@661444 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:41:00 +00:00
Oleg Kalnichevski
59e54a8e42
Moved AuthState to o.a.http.auth package
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659971 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 12:01:22 +00:00
Oleg Kalnichevski
68b9913d7d
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659788 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 10:42:23 +00:00
Oleg Kalnichevski
c0cf0c7654
HTTPCLIENT-424: Preemptive authentication no longer limited to BASIC scheme only. HttpClient can be customized to authenticate preemptively with DIGEST scheme
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659595 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 16:47:14 +00:00
Oleg Kalnichevski
d4f31204fb
HTTPCLIENT-777: SingleClientConnectionManager Needs to Recreate UniquePoolEntry
...
Contributed by Sam Berlin <sberlin at gmail.com>
Reviewed by Oleg Kalnichevski
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659198 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:42:00 +00:00
Oleg Kalnichevski
a89695fea4
HTTPCLIENT-670: Pluggable hostname resolver
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659194 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:33:47 +00:00
Oleg Kalnichevski
5cd9d169f2
HTTPCLIENT-719: Clone support for HTTP request and cookie objects
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659191 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:26:53 +00:00
Oleg Kalnichevski
a9d307fa91
Renamed classes for consistency
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658785 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:47:40 +00:00
Oleg Kalnichevski
be2250f5b2
Moved connection manager timeout parameter to ConnManagerPNames
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658781 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:42:13 +00:00
Oleg Kalnichevski
1b4ecf0b57
HTTPCLIENT-776: Fixed concurrency issues with AbstractPoolEntry
...
Contributed by Sam Berlin <sberlin at gmail.com>
Reviewed by Oleg Kalnichevski
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658775 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:30:45 +00:00
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