当前位置: 首页>>代码示例>>Java>>正文


Java AciHttpClientImpl类代码示例

本文整理汇总了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);
}
 
开发者ID:hpe-idol,项目名称:find,代码行数:20,代码来源:AbstractMigrateUsersToIncludeUsernames.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:find,代码行数:8,代码来源:IdolConfiguration.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:6,代码来源:HavenSearchIdolConfiguration.java

示例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);
}
 
开发者ID:hpe-idol,项目名称:haven-search-components,代码行数:6,代码来源:HavenSearchIdolConfiguration.java


注:本文中的com.autonomy.aci.client.transport.impl.AciHttpClientImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。