Commit Graph

518 Commits

Author SHA1 Message Date
Roland Weber 598c7ac8e8 test for HttpRoute with 100% coverage, fixed two bugs in route and tracker
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@543733 13f79535-47bb-0310-9956-ffa450edef68
2007-06-02 12:05:18 +00:00
Oleg Kalnichevski c883d7d451 Always add a Host request header to CONNECT requests
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@542253 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 15:56:35 +00:00
Oleg Kalnichevski 7813fd1197 params refactoring, step 6 - Moved param hierarchy building methods to an optional interface extending HttpParams
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@542225 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 13:34:30 +00:00
Oleg Kalnichevski 53e4063593 params refactoring, step 5: removed params argument from HttpClientConnection#receiveResponseHeader and HttpServerConnection#receiveRequestHeader methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@542200 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 11:24:35 +00:00
Roland Weber d0a973d3bf proxy chains in HttpRoute/RouteTracker/RouteDirector
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@542193 13f79535-47bb-0310-9956-ffa450edef68
2007-05-28 10:50:28 +00:00
Oleg Kalnichevski 942bff97c5 params refactoring, step 4 - Http*Connections no longer link params
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@541980 13f79535-47bb-0310-9956-ffa450edef68
2007-05-27 12:51:26 +00:00
Roland Weber c61c1a04a1 params refactoring, step 3 - HttpRequestExecutor no longer links params
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@541924 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 18:33:56 +00:00
Roland Weber cbdfa305f6 JavaDoc fixes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@541918 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 16:37:38 +00:00
Roland Weber 65ccbdc833 updated Ant build. As long as it's that simple, I'll keep it going.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@540185 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 16:09:19 +00:00
Oleg Kalnichevski 6132eab65e * Moved all concrete HostnameVerifier impls to separate classes
* Renamed DEFAULT HostnameVerifier to BROWSER_COMPATIBLE HostnameVerifier

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@540138 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 13:27:05 +00:00
Oleg Kalnichevski b19d19e544 Removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@540118 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 11:23:57 +00:00
Oleg Kalnichevski 5f64a94192 Added a bunch of entries to the SVN ignore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@540116 13f79535-47bb-0310-9956-ffa450edef68
2007-05-21 11:20:44 +00:00
Oleg Kalnichevski e27184ffc7 Maven2 friendly directory layout; Initial commit of the Maven2 project metadata
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539933 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 20:36:28 +00:00
Roland Weber d54f742c36 server-based multithreaded test of TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539880 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 14:21:28 +00:00
Roland Weber 7f4b4d2caa serverless shutdown tests for TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539868 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 11:57:15 +00:00
Roland Weber 2bd467f080 test connection GC in TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539856 13f79535-47bb-0310-9956-ffa450edef68
2007-05-20 10:15:29 +00:00
Oleg Kalnichevski 7f12408be7 Implemented authentication support for tunneling requests via an authenticating proxy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539780 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 17:19:49 +00:00
Roland Weber 2dc964aef6 another test case ported, trying to get rid of hard references to TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539772 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 16:09:57 +00:00
Oleg Kalnichevski c5022e9f6e Fixed broken testcase
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539591 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 20:17:40 +00:00
Oleg Kalnichevski 123cc0b7a5 Refactored connection management code in DefaultClientRequestDirector#execute(). Preparing to implement authentication handling for tunneling requests via an authenticating proxy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@539113 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 21:03:49 +00:00
Oleg Kalnichevski f136fddcca Fixed bug in connection management code. Connection keep-alive strategy now gets correctly applied prior to executing a follow-up request
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@538889 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 12:36:28 +00:00
Oleg Kalnichevski 5ccb548a59 Obtain HTTP state information from HTTP context
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@538866 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 10:36:55 +00:00
Oleg Kalnichevski 03cc12fa3c Moved AuthState to the public API package
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@538648 13f79535-47bb-0310-9956-ffa450edef68
2007-05-16 16:43:08 +00:00
Oleg Kalnichevski 829caee0ec Initial port of the authentication code from Commons HttpClient 3.x
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@538647 13f79535-47bb-0310-9956-ffa450edef68
2007-05-16 16:41:42 +00:00
Oleg Kalnichevski c82115dd8c Added default host and default proxy parameters HTTP client can fall back onto when determining request route
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537750 13f79535-47bb-0310-9956-ffa450edef68
2007-05-14 08:42:09 +00:00
Oleg Kalnichevski 4f2187386b Correctly propagate HTTP response back to the caller in case request tunneling has been refused by the proxy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537650 13f79535-47bb-0310-9956-ffa450edef68
2007-05-13 19:58:22 +00:00
Oleg Kalnichevski 37598982ce Some code cleanups
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537637 13f79535-47bb-0310-9956-ffa450edef68
2007-05-13 18:54:06 +00:00
Oleg Kalnichevski d3fee30940 * Minor bug fixes
* Reviewed HTTP CONNECT logic for compliance with Tunneling TCP based protocols through Web proxy servers

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537590 13f79535-47bb-0310-9956-ffa450edef68
2007-05-13 14:46:12 +00:00
Oleg Kalnichevski 69fa4fa732 Ported circular redirect check
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537567 13f79535-47bb-0310-9956-ffa450edef68
2007-05-13 09:52:04 +00:00
Oleg Kalnichevski e7f0a20c5e Make sure redirect response body is fully consumed, if present
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537382 13f79535-47bb-0310-9956-ffa450edef68
2007-05-12 10:44:13 +00:00
Oleg Kalnichevski c04bd63e47 Initial port of the redirect handling code
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537378 13f79535-47bb-0310-9956-ffa450edef68
2007-05-12 10:34:30 +00:00
Oleg Kalnichevski 9a534e7e8d Implemented request URI rewriting (depending on whether the request is being routed via a proxy or not)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537144 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 09:30:13 +00:00
Oleg Kalnichevski 3ff9c31171 * Changed HttpClient interface to take a single HttpUriRequest parameter instead HttpHost / HttpRequest pair
* Fixed bug in the RequestAddCookies protocol interceptor

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@537141 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 08:59:55 +00:00
Oleg Kalnichevski c2bebe8f7e Upgraded to the latest HttpCore API (caused by HTTPCORE-21)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@536670 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 21:50:47 +00:00
Oleg Kalnichevski abe4a3e9d8 Implemented request wrapping in the default client request director. This enables the request director to (1) discard automatically generated headers if the request needs to be redirected to another location or re-authenticated (2) re-write the request URI when routing the request via a proxy
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@536144 13f79535-47bb-0310-9956-ffa450edef68
2007-05-08 09:59:10 +00:00
Oleg Kalnichevski 08487a18cd Changelog:
* Added an extended version of the HttpRequest interface that provides convenience methods to access request properties such as parsed request URI and method type.
* Added a wrapper class for HttpRequests that can be used to change properties of the current request without modifying the original request object.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535975 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 20:08:31 +00:00
Oleg Kalnichevski 16615aa2ab * Fixed bug in the stale connection check
* Tweaked the process of connection allocation for a slightly better readability

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535835 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 10:18:07 +00:00
Oleg Kalnichevski c3dcd7651b Implemented HTTP request retry handling
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535794 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 09:07:44 +00:00
Oleg Kalnichevski 4a6d656ee2 Fixed interface import
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535611 13f79535-47bb-0310-9956-ffa450edef68
2007-05-06 13:31:04 +00:00
Oleg Kalnichevski 61ca72ce3e Copied HttpRequestRetryHandler and DefaultHttpRequestRetryHandler from HttpCore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535610 13f79535-47bb-0310-9956-ffa450edef68
2007-05-06 13:28:13 +00:00
Roland Weber 79402cc117 first server-based test case for TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535592 13f79535-47bb-0310-9956-ffa450edef68
2007-05-06 10:15:39 +00:00
Oleg Kalnichevski 060a84532e Changelog:
* Decoupled the process of request preparation and response finalization from the process of request execution (something Roland long insisted upon). This makes it possible to retry the request execution in case of an I/O failure without re-running HTTP protocol interceptors on the failed request 


git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535512 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 12:02:53 +00:00
Roland Weber d6159be52e towards the first server-based test for TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535483 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 09:27:03 +00:00
Roland Weber 47cad596ae JavaDoc fixes, removed broken constructor
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535473 13f79535-47bb-0310-9956-ffa450edef68
2007-05-05 07:58:51 +00:00
Oleg Kalnichevski 0a8b3be76d Implemented the HTTP state management using new protocol interceptor framework. Cookie2 support has not been ported yet
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@535132 13f79535-47bb-0310-9956-ffa450edef68
2007-05-04 09:01:16 +00:00
Oleg Kalnichevski 55c1c75b10 * Fully initialize the default instances of HttpParams, CookieSpecRegistry, and AuthSchemeRegistry
* Instantiate the default ClientConnectionManager based on the HttpParams content

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@534839 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 13:03:41 +00:00
Oleg Kalnichevski 7cda278cd5 Changelog:
* Removed static instances from SchemeRegistry, CookieSpecRegistry and AuthSchemeRegistry
* Made sure there is only one instance of SchemeRegistry per HttpClient / ClientConnectionManager
* HostConfiguration, HttpRoute and RouteTracker no longer implement Cloneable as they do not override #clone() method
* AbstractHttpClient should now be threading safe
* DefaultHttpClient populates HTTP execution context with data required for request execution

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@534769 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 09:51:22 +00:00
Roland Weber 9fb978483a some InvalidArgument test cases for TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@533491 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 09:07:37 +00:00
Roland Weber 16707c2258 more serverless tests for TSCCM, one bug fixed
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@533488 13f79535-47bb-0310-9956-ffa450edef68
2007-04-29 08:40:23 +00:00
Roland Weber 8b36eecb33 first (serverless) test case for TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@533410 13f79535-47bb-0310-9956-ffa450edef68
2007-04-28 18:46:54 +00:00