public class BasicAuthClientHttpRequestFactory extends Object implements org.springframework.beans.factory.FactoryBean<org.springframework.http.client.HttpComponentsClientHttpRequestFactory>, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
BasicAuthClientHttpRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.http.client.HttpComponentsClientHttpRequestFactory |
getObject()
Construct the client factory bean with user credentials.
|
Class<?> |
getObjectType()
Get the object type.
|
boolean |
isSingleton()
Is singleton bean?
|
void |
setAuthScope(org.apache.http.auth.AuthScope authScope)
Sets the authScope.
|
void |
setCredentials(org.apache.http.auth.Credentials credentials)
Sets the credentials.
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Sets the httpClient.
|
void |
setParams(Map<String,Object> params)
Sets the params.
|
public org.springframework.http.client.HttpComponentsClientHttpRequestFactory getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.springframework.http.client.HttpComponentsClientHttpRequestFactory>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.springframework.http.client.HttpComponentsClientHttpRequestFactory>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.springframework.http.client.HttpComponentsClientHttpRequestFactory>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setCredentials(org.apache.http.auth.Credentials credentials)
credentials - the credentials to setpublic void setAuthScope(org.apache.http.auth.AuthScope authScope)
authScope - the authScope to setpublic void setHttpClient(org.apache.http.client.HttpClient httpClient)
httpClient - the httpClient to setCopyright © 2008–2018 ConSol Software GmbH. All rights reserved.