public class HttpClientProperties
extends java.lang.Object
HttpClient.| 限定符和类型 | 类和说明 |
|---|---|
static class |
HttpClientProperties.Pool
The type Pool.
|
static class |
HttpClientProperties.Proxy
The type Proxy.
|
class |
HttpClientProperties.Ssl
The type Ssl.
|
static class |
HttpClientProperties.ThreadPool
The type Thread Pool.
|
| 构造器和说明 |
|---|
HttpClientProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Integer |
getAllIdleTime()
Gets all idle timeout.
|
java.lang.Integer |
getConnectTimeout()
Gets connect timeout.
|
java.lang.Integer |
getMaxInMemorySize()
get maxInMemorySize.
|
HttpClientProperties.Pool |
getPool()
Gets pool.
|
HttpClientProperties.Proxy |
getProxy()
Gets proxy.
|
java.lang.Integer |
getReaderIdleTime()
Gets read idle timeout.
|
java.lang.Integer |
getReadTimeout()
Gets read timeout.
|
java.time.Duration |
getResponseTimeout()
Gets response timeout.
|
HttpClientProperties.Ssl |
getSsl()
Gets ssl.
|
java.lang.String |
getStrategy()
Gets strategy.
|
HttpClientProperties.ThreadPool |
getThreadPool()
Gets thread pool.
|
java.lang.Integer |
getWriterIdleTime()
Gets writer idle timeout.
|
java.lang.Integer |
getWriteTimeout()
Gets write timeout.
|
boolean |
isKeepAlive()
Is keepAlive boolean.
|
boolean |
isWiretap()
Is wiretap boolean.
|
void |
setAllIdleTime(java.lang.Integer allIdleTime)
Sets all idle timeout.
|
void |
setConnectTimeout(java.lang.Integer connectTimeout)
Sets connect timeout.
|
void |
setKeepAlive(boolean keepAlive)
Sets keepAlive.
|
void |
setMaxInMemorySize(java.lang.Integer maxInMemorySize)
set maxInMemorySize.
|
void |
setPool(HttpClientProperties.Pool pool)
Sets pool.
|
void |
setProxy(HttpClientProperties.Proxy proxy)
Sets proxy.
|
void |
setReaderIdleTime(java.lang.Integer readerIdleTime)
Sets read idle timeout.
|
void |
setReadTimeout(java.lang.Integer readTimeout)
Sets read timeout.
|
void |
setResponseTimeout(java.lang.Long responseTimeout)
Sets response timeout.
|
void |
setSsl(HttpClientProperties.Ssl ssl)
Sets ssl.
|
void |
setStrategy(java.lang.String strategy)
Sets strategy.
|
void |
setThreadPool(HttpClientProperties.ThreadPool threadPool)
Sets thread pool.
|
void |
setWiretap(boolean wiretap)
Sets wiretap.
|
void |
setWriterIdleTime(java.lang.Integer writerIdleTime)
Sets writer idle timeout.
|
void |
setWriteTimeout(java.lang.Integer writeTimeout)
Sets write timeout.
|
public java.lang.String getStrategy()
public void setStrategy(java.lang.String strategy)
strategy - to strategypublic java.lang.Integer getConnectTimeout()
public void setConnectTimeout(java.lang.Integer connectTimeout)
connectTimeout - to connect timeoutpublic java.time.Duration getResponseTimeout()
public void setResponseTimeout(java.lang.Long responseTimeout)
responseTimeout - the response timeoutpublic java.lang.Integer getReaderIdleTime()
public void setReaderIdleTime(java.lang.Integer readerIdleTime)
readerIdleTime - the read idle timeoutpublic java.lang.Integer getWriterIdleTime()
public void setWriterIdleTime(java.lang.Integer writerIdleTime)
writerIdleTime - the writer idle timeoutpublic java.lang.Integer getAllIdleTime()
public void setAllIdleTime(java.lang.Integer allIdleTime)
allIdleTime - the all idle timeoutpublic java.lang.Integer getReadTimeout()
public void setReadTimeout(java.lang.Integer readTimeout)
readTimeout - the read timeoutpublic java.lang.Integer getWriteTimeout()
public void setWriteTimeout(java.lang.Integer writeTimeout)
writeTimeout - the write timeoutpublic HttpClientProperties.Pool getPool()
public void setPool(HttpClientProperties.Pool pool)
pool - the poolpublic HttpClientProperties.ThreadPool getThreadPool()
public void setThreadPool(HttpClientProperties.ThreadPool threadPool)
threadPool - the thread poolpublic HttpClientProperties.Proxy getProxy()
public void setProxy(HttpClientProperties.Proxy proxy)
proxy - the proxypublic HttpClientProperties.Ssl getSsl()
public void setSsl(HttpClientProperties.Ssl ssl)
ssl - the sslpublic boolean isWiretap()
public void setWiretap(boolean wiretap)
wiretap - the wiretappublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - the keepAlivepublic java.lang.Integer getMaxInMemorySize()
public void setMaxInMemorySize(java.lang.Integer maxInMemorySize)
maxInMemorySize - maxInMemorySizeCopyright © 2026 The Apache Software Foundation. All rights reserved.