本文整理了Java中org.eclipse.jetty.client.HttpClient.addBean()
方法的一些代码示例,展示了HttpClient.addBean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpClient.addBean()
方法的具体详情如下:
包路径:org.eclipse.jetty.client.HttpClient
类名称:HttpClient
方法名:addBean
暂无
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
public HttpClient(SslContextFactory sslContextFactory)
{
_sslContextFactory = sslContextFactory;
addBean(_sslContextFactory);
addBean(_buffers);
}
代码示例来源:origin: org.eclipse.jetty/jetty-client
public HttpClient(HttpClientTransport transport, SslContextFactory sslContextFactory)
{
this.transport = transport;
addBean(transport);
if (sslContextFactory == null)
{
sslContextFactory = new SslContextFactory(false);
sslContextFactory.setEndpointIdentificationAlgorithm("HTTPS");
}
this.sslContextFactory = sslContextFactory;
addBean(sslContextFactory);
addBean(handlers);
addBean(decoderFactories);
}
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
/** Set the ThreadPool.
* The threadpool passed is added via {@link #addBean(Object)} so that
* it's lifecycle may be managed as a {@link AggregateLifeCycle}.
* @param threadPool the threadPool to set
*/
public void setThreadPool(ThreadPool threadPool)
{
removeBean(_threadPool);
_threadPool = threadPool;
addBean(_threadPool);
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9
addBean(sslContextFactory);
executor = threadPool;
addBean(executor);
addBean(byteBufferPool);
addBean(scheduler);
addBean(selectorManager);
代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9
addBean(sslContextFactory);
executor = threadPool;
addBean(executor);
addBean(byteBufferPool);
addBean(scheduler);
addBean(selectorManager);
代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server
pool.setName("HttpClient");
_threadPool = pool;
addBean(_threadPool,true);
addBean(_connector,true);
代码示例来源:origin: airlift/airlift
httpClient.setExecutor(queuedThreadPool);
httpClient.addBean(queuedThreadPool, true);
httpClient.setScheduler(createScheduler(name, config.getTimeoutConcurrency(), config.getTimeoutThreads()));
httpClient.addBean(new Sweeper(httpClient.getScheduler(), SWEEP_PERIOD_MILLIS), true);
httpClient.addBean(connectionStats);
this.connectionStats = new ConnectionStats(connectionStats);
代码示例来源:origin: com.proofpoint.platform/http-client
httpClient.setExecutor(executor);
httpClient.addBean(executor, true);
httpClient.setScheduler(createScheduler(name, config.getTimeoutConcurrency(), config.getTimeoutThreads()));
httpClient.addBean(new Sweeper(httpClient.getScheduler(), SWEEP_PERIOD_MILLIS), true);
内容来源于网络,如有侵权,请联系作者删除!