[spring-extensions] branch master updated: Disable cookie handling and compression via HttpClient factory bean.

Scott Cantor cantor.2 at osu.edu
Wed May 31 20:36:41 EDT 2017


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

scantor pushed a commit to branch master
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=1b3cf209593d2f6fc430c6ca87c56e4f506e4dce

The following commit(s) were added to refs/heads/master by this push:
       new  1b3cf20   Disable cookie handling and compression via HttpClient factory bean.
1b3cf20 is described below

commit 1b3cf209593d2f6fc430c6ca87c56e4f506e4dce
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 31 20:36:39 2017 -0400

    Disable cookie handling and compression via HttpClient factory bean.
---
 .../ext/spring/factory/HttpClientFactoryBean.java  | 28 +++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
index a42e300..0a37401 100644
--- a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
+++ b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
@@ -148,7 +148,7 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
      * 
      * @param host hostname of the default proxy used when making connection
      */
-    public void setConnectionProxyHost(final String host) {
+    public void setConnectionProxyHost(@Nullable final String host) {
         builder.setConnectionProxyHost(host);
     }
 
@@ -166,7 +166,7 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
      * 
      * @param usename username to use when authenticating to the proxy; may be null
      */
-    public void setConnectionProxyUsername(final String usename) {
+    public void setConnectionProxyUsername(@Nullable final String usename) {
         builder.setConnectionProxyUsername(usename);
     }
 
@@ -175,7 +175,7 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
      * 
      * @param password password used when authenticating to the proxy; may be null
      */
-    public void setConnectionProxyPassword(final String password) {
+    public void setConnectionProxyPassword(@Nullable final String password) {
         builder.setConnectionProxyPassword(password);
     }
 
@@ -190,6 +190,28 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
     }
     
     /**
+     * Sets whether to disable content compression.
+     * 
+     * @param disable whether to disable content compression
+     * 
+     * @since 5.4.0
+     */
+    public void setDisableContentCompression(final boolean disable) {
+        builder.setDisableContentCompression(disable);
+    }
+    
+    /**
+     * Sets whether to disable cookie management.
+     * 
+     * @param disable whether to disable cookie management
+     * 
+     * @since 5.4.0
+     */
+    public void setDisableCookieManagement(final boolean disable) {
+        builder.setDisableCookieManagement(disable);
+    }
+
+    /**
      * Create and return the instance of {@link HttpClientBuilder} to use.  
      * Subclasses may override to build a specialized subclass.
      * 

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


More information about the commits mailing list