Commit Graph

2139 Commits

Author SHA1 Message Date
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
Oleg Kalnichevski 62b67ba1ac Changed Cookie#isExpired() to take current system time as an argument instead of obtaining it through System#currentTimeMillis()
Suggested by Roland Weber

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@531455 13f79535-47bb-0310-9956-ffa450edef68
2007-04-23 12:54:52 +00:00
Roland Weber 4fc15c9a55 JavaDoc fixes in client/cookie/auth
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@531154 13f79535-47bb-0310-9956-ffa450edef68
2007-04-22 08:01:16 +00:00
Roland Weber 6802e38045 HTTPCLIENT-635, port of HTTPCLIENT-633
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@531152 13f79535-47bb-0310-9956-ffa450edef68
2007-04-22 07:41:06 +00:00
Roland Weber 765bbc3947 added Ant build dependency, fixed synchronization bug
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528628 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 19:43:07 +00:00
Oleg Kalnichevski 04d43a0dd6 Added URL encoded form entity
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528521 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 15:21:04 +00:00
Oleg Kalnichevski 48c6f17ba1 Ported URL encoding utils from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528509 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 14:59:45 +00:00
Oleg Kalnichevski d64edda9e5 Added method to extract a set of allowed methods from the OPTIONS response
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528488 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 14:01:26 +00:00
Oleg Kalnichevski 58113ab702 Added ability to abort HTTP methods
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528462 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 12:25:11 +00:00
Oleg Kalnichevski 254de778a5 Added HttpGet, HttpHead, HttpPost, HttpPut, HttpTrace, and HttpOptions classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@528433 13f79535-47bb-0310-9956-ffa450edef68
2007-04-13 10:36:05 +00:00
Oleg Kalnichevski a98e1f6629 Ported HttpState from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527976 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 15:21:53 +00:00
Oleg Kalnichevski d502620eac Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527904 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 12:43:58 +00:00
Oleg Kalnichevski 1554373cf8 Renamed CookiePolicy to CookieSpecRegistry and AuthPolicy to AuthSchemeRegistry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527903 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 12:42:35 +00:00
Oleg Kalnichevski 134b0bf0f9 Changelog:
* Made all methods in AuthPolicy and CookiePolicy non-static
* API and internal implementation of AuthPolicy, CookiePolicy and SchemeRegistry made more consistent
* Removed name iterator from the SchemeRegistry
* Changed AuthPolicy to use auth scheme factories

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527900 13f79535-47bb-0310-9956-ffa450edef68
2007-04-12 12:35:25 +00:00
Oleg Kalnichevski 919eeb2933 Ported AuthPolicy and AuthScope from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527681 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 21:27:29 +00:00
Oleg Kalnichevski 31d1001b23 Renamed some test case classes
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527496 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 14:00:18 +00:00
Oleg Kalnichevski 25afa68faa Ported DigestScheme and related test cases from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527479 13f79535-47bb-0310-9956-ffa450edef68
2007-04-11 12:55:12 +00:00
Oleg Kalnichevski ab199c3513 Ported UsernamePasswordCredentials, BasicScheme and related test cases from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@527146 13f79535-47bb-0310-9956-ffa450edef68
2007-04-10 14:41:44 +00:00
Oleg Kalnichevski f9ff925e2d * Removed TalkativeSocketFactory
* Fixed a minor bug in test HTTP server

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@526921 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 21:11:42 +00:00
Oleg Kalnichevski a86b2d754a Ported RFC2617Scheme from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@526919 13f79535-47bb-0310-9956-ffa450edef68
2007-04-09 21:10:01 +00:00
Oleg Kalnichevski 4ff37c9c5e Added HTTP headers log
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@526466 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 18:16:01 +00:00
Oleg Kalnichevski b94236fa2e Ported wire logging from Commons HttpClient
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@526418 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 11:18:37 +00:00
Oleg Kalnichevski 9be91137d5 Removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@519292 13f79535-47bb-0310-9956-ffa450edef68
2007-03-17 11:43:29 +00:00
Roland Weber bbeb59c50a redundant 'implements' as JavaDoc improvement
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511481 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 11:03:12 +00:00
Roland Weber 966e0fd8a6 TSCCM uses pooled connection adapter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511479 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 10:56:38 +00:00
Roland Weber e96c1657a7 new pooled connection adapter, simplified SingleCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511477 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 10:41:55 +00:00
Roland Weber 674c28015f SimpleCCM becomes SingleCCM, uses a pool entry
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511474 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 10:02:31 +00:00
Roland Weber f87722797a abstract pool entry, refactored from TSCCM
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511462 13f79535-47bb-0310-9956-ffa450edef68
2007-02-25 08:13:07 +00:00
Roland Weber 0f50e55b29 cleaned up test server based on Oleg's code in HttpCore
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@511332 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 19:49:03 +00:00
Roland Weber 6c68de5452 LocalTestServer and related stuff. No actual test cases yet.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@510634 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 19:44:36 +00:00