[java-shib-shared] branch main updated: Add non-null HttpClientContext creation method.
Scott Cantor
cantor.2 at osu.edu
Wed Mar 15 12:56:35 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=b1a3d3873fb9165779490b659109565d0c1e0631
The following commit(s) were added to refs/heads/main by this push:
new b1a3d387 Add non-null HttpClientContext creation method.
b1a3d387 is described below
commit b1a3d3873fb9165779490b659109565d0c1e0631
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Mar 15 08:56:32 2023 -0400
Add non-null HttpClientContext creation method.
---
.../net/shibboleth/shared/httpclient/HttpClientSupport.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/shib-networking/src/main/java/net/shibboleth/shared/httpclient/HttpClientSupport.java b/shib-networking/src/main/java/net/shibboleth/shared/httpclient/HttpClientSupport.java
index b4c5b75f..75a9737a 100644
--- a/shib-networking/src/main/java/net/shibboleth/shared/httpclient/HttpClientSupport.java
+++ b/shib-networking/src/main/java/net/shibboleth/shared/httpclient/HttpClientSupport.java
@@ -128,7 +128,18 @@ public final class HttpClientSupport {
}
};
// Checkstyle: AnonInnerLength ON
-
+ }
+
+ /**
+ * Non-null version of client context creation.
+ *
+ * @return the new client context instance
+ *
+ * @since 9.0.0
+ */
+ @SuppressWarnings("null")
+ @Nonnull public static HttpClientContext buildHttpClientContext() {
+ return HttpClientContext.create();
}
/**
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list