Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)

104861: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud)
      104813: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.2)
         104739: Merged NESS/4.2.N-2015_04_30 (4.2.5) to V4.2-BUG-FIX (4.2.5)
            104570: MNT-14057 : Are there authentication issues with FSTR?
               - Enabled preemptive authentication through Spring injection


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@104884 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2015-05-26 21:55:22 +00:00
parent 2429784d6d
commit 68d6c42d3f
2 changed files with 14 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ public class HttpClientTransmitterImpl implements TransferTransmitter
private ContentService contentService;
private NodeService nodeService;
private boolean isAuthenticationPreemptive = false;
public HttpClientTransmitterImpl()
{
@@ -113,6 +114,7 @@ public class HttpClientTransmitterImpl implements TransferTransmitter
public void init()
{
PropertyCheck.mandatory(this, "contentService", contentService);
httpClient.getParams().setAuthenticationPreemptive(isAuthenticationPreemptive);
}
/**
@@ -136,6 +138,15 @@ public class HttpClientTransmitterImpl implements TransferTransmitter
this.httpClient = httpClient;
}
/**
* Whether httpClient will use preemptive authentication or not.
* @param flag
*/
public void setIsAuthenticationPreemptive(boolean isAuthenticationPreemptive)
{
this.isAuthenticationPreemptive = isAuthenticationPreemptive;
}
/* (non-Javadoc)
* @see org.alfresco.repo.transfer.Transmitter#verifyTarget(org.alfresco.service.cmr.transfer.TransferTarget)
*/