本文整理汇总了Java中com.autonomy.aci.client.transport.impl.AciHttpClientImpl类的典型用法代码示例。如果您正苦于以下问题:Java AciHttpClientImpl类的具体用法?Java AciHttpClientImpl怎么用?Java AciHttpClientImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AciHttpClientImpl类属于com.autonomy.aci.client.transport.impl包,在下文中一共展示了AciHttpClientImpl类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractMigrateUsersToIncludeUsernames
import com.autonomy.aci.client.transport.impl.AciHttpClientImpl; //导入依赖的package包/类
protected AbstractMigrateUsersToIncludeUsernames() {
final String host = System.getProperty(COMMUNITY_HOST);
final int port = Integer.parseInt(System.getProperty(COMMUNITY_PORT));
final AciServerDetails.TransportProtocol transportProtocol = AciServerDetails.TransportProtocol.valueOf(System.getProperty(COMMUNITY_PROTOCOL));
serverDetails = new AciServerDetails(transportProtocol, host, port);
processorFactory = new ProcessorFactoryImpl(new Jaxb2MarshallerFactory());
final SocketConfig socketConfig = SocketConfig.custom().setSoTimeout(HTTP_SOCKET_TIMEOUT).build();
final HttpClient httpClient = HttpClientBuilder.create()
.setMaxConnPerRoute(MAX_CONNECTIONS_PER_ROUTE)
.setMaxConnTotal(MAX_CONNECTIONS_TOTAL)
.setDefaultSocketConfig(socketConfig)
.build();
final AciHttpClient aciHttpClient = new AciHttpClientImpl(httpClient);
aciService = new AciServiceImpl(aciHttpClient, serverDetails);
}
示例2: postingAciService
import com.autonomy.aci.client.transport.impl.AciHttpClientImpl; //导入依赖的package包/类
@Bean
public AciService postingAciService(final HttpClient httpClient) {
final AciHttpClientImpl aciHttpClient = new AciHttpClientImpl(httpClient);
aciHttpClient.setUsePostMethod(true);
return new AciServiceImpl(aciHttpClient);
}
示例3: aciHttpClient
import com.autonomy.aci.client.transport.impl.AciHttpClientImpl; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = ACI_HTTP_CLIENT_BEAN_NAME)
public AciHttpClient aciHttpClient(final HttpClient httpClient) {
return new AciHttpClientImpl(httpClient);
}
示例4: validatorAciHttpClient
import com.autonomy.aci.client.transport.impl.AciHttpClientImpl; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(name = VALIDATOR_ACI_HTTP_CLIENT_BEAN_NAME)
public AciHttpClient validatorAciHttpClient(final HttpClient validatorHttpClient) {
return new AciHttpClientImpl(validatorHttpClient);
}