[java-opensaml] 12/16: Move build of HttpClientContext to later in the process.
Brent Putman
putmanb at georgetown.edu
Sun Dec 17 00:08:22 EST 2017
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=4f2124d39105c8509cbf8d721461fb1787348dc0
commit 4f2124d39105c8509cbf8d721461fb1787348dc0
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Fri Dec 15 18:30:48 2017 -0500
Move build of HttpClientContext to later in the process.
This is so outbound transport handlers can operate and influence
the content of the context, e.g. HttpClientSecurityParameters.
---
.../org/opensaml/soap/client/http/AbstractPipelineHttpSOAPClient.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/AbstractPipelineHttpSOAPClient.java b/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/AbstractPipelineHttpSOAPClient.java
index c601976..ab6022a 100644
--- a/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/AbstractPipelineHttpSOAPClient.java
+++ b/opensaml-soap-api/src/main/java/org/opensaml/soap/client/http/AbstractPipelineHttpSOAPClient.java
@@ -201,8 +201,6 @@ public abstract class AbstractPipelineHttpSOAPClient<OutboundMessageType, Inboun
}
final HttpUriRequest httpRequest = buildHttpRequest(endpoint, operationContext);
- final HttpClientContext httpContext = buildHttpContext(httpRequest, operationContext);
-
// Request encoding + outbound transport handling
final HttpClientRequestMessageEncoder<OutboundMessageType> encoder = pipeline.getEncoder();
encoder.setHttpRequest(httpRequest);
@@ -214,7 +212,9 @@ public abstract class AbstractPipelineHttpSOAPClient<OutboundMessageType, Inboun
}
encoder.encode();
+
// HttpClient execution
+ final HttpClientContext httpContext = buildHttpContext(httpRequest, operationContext);
final HttpResponse httpResponse = getHttpClient().execute(httpRequest, httpContext);
HttpClientSecuritySupport.checkTLSCredentialEvaluated(httpContext, httpRequest.getURI().getScheme());
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list