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:
parent
cbdfa305f6
commit
c61c1a04a1
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue