mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
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:
@@ -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)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user