public class HttpClientFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpClientFactory.SecureCommsType |
| Constructor and Description |
|---|
HttpClientFactory() |
HttpClientFactory(HttpClientFactory.SecureCommsType secureCommsType,
SSLEncryptionParameters sslEncryptionParameters,
KeyResourceLoader keyResourceLoader,
KeyStoreParameters keyStoreParameters,
MD5EncryptionParameters encryptionParameters,
java.lang.String host,
int port,
int sslPort,
int maxTotalConnections,
int maxHostConnections) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.httpclient.HttpClient |
constructHttpClient() |
protected AlfrescoHttpClient |
getAlfrescoHttpClient() |
protected AlfrescoHttpClient |
getAlfrescoHttpsClient() |
protected AlfrescoHttpClient |
getAlfrescoMD5HttpClient(java.lang.String host,
int port) |
protected AlfrescoHttpClient |
getAlfrescoMD5HttpClient(java.lang.String host,
int port,
EncryptionService encryptionService)
For testing.
|
protected org.apache.commons.httpclient.HttpClient |
getDefaultHttpClient() |
org.apache.commons.httpclient.HttpClient |
getHttpClient() |
protected org.apache.commons.httpclient.HttpClient |
getHttpsClient() |
int |
getMaxHostConnections() |
int |
getMaxTotalConnections() |
protected org.apache.commons.httpclient.HttpClient |
getMD5HttpClient(java.lang.String host,
int port) |
AlfrescoHttpClient |
getRepoClient(java.lang.String host,
int port) |
void |
init() |
boolean |
isSSL() |
void |
setConnectionTimeout(int connectionTimeout)
Attempts to connect to a server will timeout after this period (millis).
|
void |
setEncryptionParameters(MD5EncryptionParameters encryptionParameters) |
void |
setHost(java.lang.String host) |
void |
setKeyResourceLoader(KeyResourceLoader keyResourceLoader) |
void |
setKeyStoreParameters(KeyStoreParameters keyStoreParameters) |
void |
setMaxHostConnections(int maxHostConnections) |
void |
setMaxTotalConnections(int maxTotalConnections) |
void |
setPort(int port) |
void |
setSecureCommsType(java.lang.String type) |
void |
setSSLEncryptionParameters(SSLEncryptionParameters sslEncryptionParameters) |
void |
setSslPort(int sslPort) |
public HttpClientFactory()
public HttpClientFactory(HttpClientFactory.SecureCommsType secureCommsType, SSLEncryptionParameters sslEncryptionParameters, KeyResourceLoader keyResourceLoader, KeyStoreParameters keyStoreParameters, MD5EncryptionParameters encryptionParameters, java.lang.String host, int port, int sslPort, int maxTotalConnections, int maxHostConnections)
public void init()
public void setHost(java.lang.String host)
public void setPort(int port)
public void setSslPort(int sslPort)
public boolean isSSL()
public void setSecureCommsType(java.lang.String type)
public void setSSLEncryptionParameters(SSLEncryptionParameters sslEncryptionParameters)
public void setKeyStoreParameters(KeyStoreParameters keyStoreParameters)
public void setEncryptionParameters(MD5EncryptionParameters encryptionParameters)
public void setKeyResourceLoader(KeyResourceLoader keyResourceLoader)
public int getMaxTotalConnections()
public void setMaxTotalConnections(int maxTotalConnections)
maxTotalConnections - the maxTotalConnections to setpublic int getMaxHostConnections()
public void setMaxHostConnections(int maxHostConnections)
maxHostConnections - the maxHostConnections to setpublic void setConnectionTimeout(int connectionTimeout)
connectionTimeout - time in millis.protected org.apache.commons.httpclient.HttpClient constructHttpClient()
protected org.apache.commons.httpclient.HttpClient getHttpsClient()
protected org.apache.commons.httpclient.HttpClient getDefaultHttpClient()
protected AlfrescoHttpClient getAlfrescoHttpsClient()
protected AlfrescoHttpClient getAlfrescoHttpClient()
protected org.apache.commons.httpclient.HttpClient getMD5HttpClient(java.lang.String host,
int port)
protected AlfrescoHttpClient getAlfrescoMD5HttpClient(java.lang.String host, int port)
protected AlfrescoHttpClient getAlfrescoMD5HttpClient(java.lang.String host, int port, EncryptionService encryptionService)
host - port - encryptionService - public AlfrescoHttpClient getRepoClient(java.lang.String host, int port)
public org.apache.commons.httpclient.HttpClient getHttpClient()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.