Commit Graph

906 Commits

Author SHA1 Message Date
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
Oleg Kalnichevski 56baf77bb2 Minor code improvements in the DefaultClientRequestRedirector and SingleClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650979 13f79535-47bb-0310-9956-ffa450edef68
2008-04-23 18:23:15 +00:00
Oleg Kalnichevski 374228c58c HTTPCLIENT-763: AbstractClientConnAdapter#abortConnection() does not release the connection if called from the main execution thread while there is no blocking I/O operation.
AbstractClientConnAdapter#abortConnection() is usually expected to be called from a helper thread in order to unblock the main execution thread blocked in an I/O operation. It may be unsafe to call AbstractClientConnAdapter#releaseConnection() from the helper thread, so we have to rely on an IOException thrown by the closed socket on the main thread to trigger the release of the connection back to the connection manager. However, if this method is called from the main execution thread it should be safe to release the connection immediately. Besides, this also helps ensure the connection gets released back to the manager if AbstractClientConnAdapter#abortConnection() is called from the main execution thread while there is no blocking I/O operation.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650225 13f79535-47bb-0310-9956-ffa450edef68
2008-04-21 19:14:23 +00:00
Oleg Kalnichevski e2eb355878 HTTPCLIENT-763: AbstractClientConnAdapter#abortConnection() does not release the connection if called from the main execution thread while there is no blocking I/O operation.
AbstractClientConnAdapter#abortConnection() is usually expected to be called from a helper thread in order to unblock the main execution thread blocked in an I/O operation. It may be unsafe to call AbstractClientConnAdapter#releaseConnection() from the helper thread, so we have to rely on an IOException thrown by the closed socket on the main thread to trigger the release of the connection back to the connection manager. However, if this method is called from the main execution thread it should be safe to release the connection immediately. Besides, this also helps ensure the connection gets released back to the manager if AbstractClientConnAdapter#abortConnection() is called from the main execution thread while there is no blocking I/O operation.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650223 13f79535-47bb-0310-9956-ffa450edef68
2008-04-21 19:08:17 +00:00
Oleg Kalnichevski ef548b4620 Renamed Aborter to WaitingThreadAborter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@649220 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 18:40:24 +00:00
Oleg Kalnichevski d3205ff522 Change WaitingThread class to unblock the lock instead of interrupting the waiting thread
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@649217 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 18:32:32 +00:00
Oleg Kalnichevski ad9e79c4d9 HTTPCLIENT-652: Added optional state attribute to managed client connections; this enables connection managers to correctly handle stateful connections
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@649204 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 17:50:13 +00:00
Oleg Kalnichevski 2b91201275 Refactoring of the TSCCM code:
* Removed code maintaining a weak reference to the parent connection manager in the AbstractConnPool. The weak reference to the connection manager is currently used to shut down the pool when the connection manager gets GC-ed. The same net result can be achieved by calling #shutdown from #finalize() of the connection manager class.
* Shut down connection managers in #finalize().
* There is no point passing ClientConnectionOperator around. It can be assigned to the connection pool once at the construction time.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@649035 13f79535-47bb-0310-9956-ffa450edef68
2008-04-17 10:00:45 +00:00
Oleg Kalnichevski 5a08148d25 Refactored configuration of the thread-safe connection manager and its components. Parameters now apply at the construction time only
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@648877 13f79535-47bb-0310-9956-ffa450edef68
2008-04-16 22:05:35 +00:00
Oleg Kalnichevski bfbc2e0007 Fixed the use of the Lock interface in AbstractConnPool and ConnPoolByRoute
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@648848 13f79535-47bb-0310-9956-ffa450edef68
2008-04-16 21:05:54 +00:00
Oleg Kalnichevski 608a6e67f3 HTTPCLIENT-748: Made AuthSchemeRegistry, SchemeRegistry, CookieSpecRegistry friendlier for DI frameworks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@648356 13f79535-47bb-0310-9956-ffa450edef68
2008-04-15 17:57:53 +00:00
Oleg Kalnichevski ffa55f8eec Replaced ConnPerRouteBean class with ConnPerRoute interface
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@647811 13f79535-47bb-0310-9956-ffa450edef68
2008-04-14 14:20:30 +00:00
Oleg Kalnichevski bc6b2d7061 HTTPCLIENT-673: Revised max connections per route configuration
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@647810 13f79535-47bb-0310-9956-ffa450edef68
2008-04-14 14:17:01 +00:00
Oleg Kalnichevski 824b785a99 HTTPCLIENT-652:
* Reverting most of my previous changes. Passing a state object to the connection manager when trying to obtain a connection is completely pointless, as usually connection state information becomes available only after the connection has been established, for instance, after having been challenged by an authenticating server. Therefore, it is necessary to be able to set a state object on an active connection
* added method to set state object on ManagedClientConnection

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@646918 13f79535-47bb-0310-9956-ffa450edef68
2008-04-10 18:30:12 +00:00
Oleg Kalnichevski 8ff6eedd9e HTTPCLIENT-652: Added optional state attribute to managed client connections
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@646549 13f79535-47bb-0310-9956-ffa450edef68
2008-04-09 21:29:33 +00:00
Oleg Kalnichevski 42d9c4e324 Simplified OperatedClientConnection interface. Moved secure flag to #openCompleted
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@646087 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 21:36:46 +00:00
Oleg Kalnichevski 987b1cab33 Simplified OperatedClientConnection interface
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@646081 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 21:28:48 +00:00
Oleg Kalnichevski 168a699a8f HTTPCLIENT-752: version.properties for HttpMime
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@645851 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 11:14:29 +00:00
Oleg Kalnichevski 47eff4157e HTTPCLIENT-753: Class Scheme and related classes moved to a separate package
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@645850 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 11:08:52 +00:00
Oleg Kalnichevski 21705fdb9c Made RoutedRequest a simple class
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@645846 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 10:53:39 +00:00
Oleg Kalnichevski f2ef6c15a6 HTTPCLIENT-757: Improved request wrapping in the DefaultClientRequestDirector. This also fixed the problem with the default proxy set at the client level having no effect.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@645843 13f79535-47bb-0310-9956-ffa450edef68
2008-04-08 10:46:04 +00:00