[java-identity-provider] branch master updated: New "public" HttpClientBuilder classes.

Scott Cantor cantor.2 at osu.edu
Wed Jan 17 12:35:28 EST 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=2abf7714ee1623dd0603f9c599c553cac4122be7

The following commit(s) were added to refs/heads/master by this push:
       new  2abf771   New "public" HttpClientBuilder classes.
2abf771 is described below

commit 2abf7714ee1623dd0603f9c599c553cac4122be7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 17 12:35:26 2018 -0500

    New "public" HttpClientBuilder classes.
---
 .../idp/spring/FileCachingHttpClientBuilder.java   | 37 ++++++++++++++++++++++
 .../shibboleth/idp/spring/HttpClientBuilder.java   | 36 +++++++++++++++++++++
 .../spring/InMemoryCachingHttpClientBuilder.java   | 37 ++++++++++++++++++++++
 3 files changed, 110 insertions(+)

diff --git a/idp-core/src/main/java/net/shibboleth/idp/spring/FileCachingHttpClientBuilder.java b/idp-core/src/main/java/net/shibboleth/idp/spring/FileCachingHttpClientBuilder.java
new file mode 100644
index 0000000..e524c5c
--- /dev/null
+++ b/idp-core/src/main/java/net/shibboleth/idp/spring/FileCachingHttpClientBuilder.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements.  See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.spring;
+
+import net.shibboleth.idp.Version;
+
+/**
+ * FileCachingHttpClientBuilder customization for the Shibboleth IdP.
+ */
+public class FileCachingHttpClientBuilder
+        extends net.shibboleth.utilities.java.support.httpclient.FileCachingHttpClientBuilder {
+
+    /**
+     * Constructor.
+     */
+    public FileCachingHttpClientBuilder() {
+        final StringBuilder stringBuilder = new StringBuilder("ShibbolethIdp/");
+        stringBuilder.append(Version.getVersion()).append(" OpenSAML/").append(org.opensaml.core.Version.getVersion());
+        setUserAgent(stringBuilder.toString());
+    }
+    
+}
\ No newline at end of file
diff --git a/idp-core/src/main/java/net/shibboleth/idp/spring/HttpClientBuilder.java b/idp-core/src/main/java/net/shibboleth/idp/spring/HttpClientBuilder.java
new file mode 100644
index 0000000..66f0101
--- /dev/null
+++ b/idp-core/src/main/java/net/shibboleth/idp/spring/HttpClientBuilder.java
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements.  See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.spring;
+
+import net.shibboleth.idp.Version;
+
+/**
+ * HttpClientBuilder customization for the Shibboleth IdP.
+ */
+public class HttpClientBuilder extends net.shibboleth.utilities.java.support.httpclient.HttpClientBuilder {
+
+    /**
+     * Constructor.
+     */
+    public HttpClientBuilder() {
+        final StringBuilder stringBuilder = new StringBuilder("ShibbolethIdp/");
+        stringBuilder.append(Version.getVersion()).append(" OpenSAML/").append(org.opensaml.core.Version.getVersion());
+        setUserAgent(stringBuilder.toString());
+    }
+    
+}
\ No newline at end of file
diff --git a/idp-core/src/main/java/net/shibboleth/idp/spring/InMemoryCachingHttpClientBuilder.java b/idp-core/src/main/java/net/shibboleth/idp/spring/InMemoryCachingHttpClientBuilder.java
new file mode 100644
index 0000000..640ae00
--- /dev/null
+++ b/idp-core/src/main/java/net/shibboleth/idp/spring/InMemoryCachingHttpClientBuilder.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements.  See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.idp.spring;
+
+import net.shibboleth.idp.Version;
+
+/**
+ * InMemoryCachingHttpClientBuilder customization for the Shibboleth IdP.
+ */
+public class InMemoryCachingHttpClientBuilder
+        extends net.shibboleth.utilities.java.support.httpclient.InMemoryCachingHttpClientBuilder {
+
+    /**
+     * Constructor.
+     */
+    public InMemoryCachingHttpClientBuilder() {
+        final StringBuilder stringBuilder = new StringBuilder("ShibbolethIdp/");
+        stringBuilder.append(Version.getVersion()).append(" OpenSAML/").append(org.opensaml.core.Version.getVersion());
+        setUserAgent(stringBuilder.toString());
+    }
+    
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list