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
This commit is contained in:
Roland Weber 2007-05-26 18:33:56 +00:00
parent cbdfa305f6
commit c61c1a04a1
4 changed files with 8 additions and 3 deletions

View File

@ -338,7 +338,8 @@ public class DefaultClientRequestDirector
targetAuthState);
context.setAttribute(HttpClientContext.PROXY_AUTH_STATE,
proxyAuthState);
//@@@ review parameter hierachy building
request.getParams().setDefaults(requestExec.getParams());
requestExec.preProcess(request, httpProcessor, context);
if (orig instanceof AbortableHttpRequest) {

View File

@ -102,6 +102,7 @@ public class ExecReqThread extends GetConnThread {
HttpRequest request = (HttpRequest) request_spec.context.
getAttribute(HttpExecutionContext.HTTP_REQUEST);
request.getParams().setDefaults(request_spec.executor.getParams());
request_spec.executor.preProcess
(request, request_spec.processor, request_spec.context);

View File

@ -66,6 +66,7 @@ public final class Helper {
ctxt.setAttribute(HttpExecutionContext.HTTP_TARGET_HOST, target);
ctxt.setAttribute(HttpExecutionContext.HTTP_REQUEST, req);
req.getParams().setDefaults(exec.getParams());
exec.preProcess(req, proc, ctxt);
HttpResponse rsp = exec.execute(req, conn, ctxt);
exec.postProcess(rsp, proc, ctxt);

View File

@ -85,7 +85,8 @@ public class TestLocalServer extends ServerTestBase {
HttpExecutionContext.HTTP_TARGET_HOST, target);
httpContext.setAttribute(
HttpExecutionContext.HTTP_REQUEST, request);
request.getParams().setDefaults(httpExecutor.getParams());
httpExecutor.preProcess
(request, httpProcessor, httpContext);
HttpResponse response = httpExecutor.execute
@ -126,7 +127,8 @@ public class TestLocalServer extends ServerTestBase {
HttpExecutionContext.HTTP_TARGET_HOST, target);
httpContext.setAttribute(
HttpExecutionContext.HTTP_REQUEST, request);
request.getParams().setDefaults(httpExecutor.getParams());
httpExecutor.preProcess
(request, httpProcessor, httpContext);
HttpResponse response = httpExecutor.execute