| 构造器和说明 |
|---|
ObsConfiguration()
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
ObsConfiguration |
clone() |
void |
disableNio()
已过时。
|
void |
enableNio()
已过时。
|
AuthTypeEnum |
getAuthType()
Obtain the authentication type.
|
int |
getBufferSize()
已过时。
|
int |
getConnectionRequestTimeout()
已过时。
|
int |
getConnectionTimeout()
Obtain the timeout interval for establishing HTTP/HTTPS connections (in
milliseconds, 60,000 milliseconds by default).
|
okhttp3.Dns |
getCustomizedDnsImpl()
Obtain the customized Dns.
|
String |
getDefaultBucketLocation()
已过时。
|
String |
getDelimiter() |
String |
getEndPoint()
Obtain the endpoint for accessing OBS.
|
int |
getEndpointHttpPort()
Obtain the port number of the HTTP request (80 by default).
|
int |
getEndpointHttpsPort()
Obtain the port number of the HTTPS request (443 by default).
|
okhttp3.EventListener.Factory |
getEventListenerFactory() |
HostnameVerifier |
getHostnameVerifier() |
okhttp3.Dispatcher |
getHttpDispatcher()
Set the customized dispatcher.
|
HttpProtocolTypeEnum |
getHttpProtocolType()
Set the HTTP type used for accessing OBS servers.
|
HttpProxyConfiguration |
getHttpProxy()
Obtain the proxy configuration.
|
int |
getIdleConnectionTime()
Obtain the idle time for obtaining connections from the connection pool.
|
KeyManagerFactory |
getKeyManagerFactory()
Obtain the factory for generating the "KeyManager" array.
|
int |
getLocalAuthTypeCacheCapacity() |
com.obs.services.internal.utils.LocalTimeUtil |
getLocalTimeUtil() |
int |
getMaxConnections()
Obtain the maximum number of HTTP connections (1000 by default) that can
be opened.
|
int |
getMaxErrorRetry()
Obtain the maximum number of retry attempts (5 by default) upon a request
failure (request exception, or error 500 or 503 on the server).
|
int |
getMaxIdleConnections()
Obtain the maximum number of idle connections in the connection pool.
|
int |
getReadBufferSize()
Obtain the read cache size used for uploading objects to socket streams
(in bytes).
|
SecureRandom |
getSecureRandom() |
String |
getSignatString()
已过时。
|
int |
getSocketReadBufferSize()
Obtain the size (bytes) of the socket receive buffer, corresponding to
the "java.net.SocketOptions.SO_RVCBUF" parameter.
|
int |
getSocketTimeout()
Obtain the timeout interval for data transmission at the socket layer (in
milliseconds, 60,000 milliseconds by default).
|
int |
getSocketWriteBufferSize()
Obtain the size (bytes) of the socket send buffer, corresponding to the
"java.net.SocketOptions.SO_SNDBUF" parameter.
|
SSLContext |
getSslContext() |
String |
getSslProvider()
Set the provider of SSLContext.
|
TrustManagerFactory |
getTrustManagerFactory()
Obtain the factory for generating the "TrustManager" array.
|
int |
getUploadStreamRetryBufferSize()
已过时。
|
int |
getWriteBufferSize()
Obtain the write cache size used for uploading objects to socket streams
(in bytes).
|
String |
getXmlDocumentBuilderFactoryClass() |
boolean |
isAuthTypeNegotiation()
Check whether protocol negotiation is used.
|
boolean |
isCname()
Check whether user-defined domain name is used.
|
boolean |
isDisableDnsBucket()
Check whether path-style access to OBS is enabled.
|
boolean |
isHttpsOnly()
Check whether HTTPS is used to connect OBS ("true" by default).
|
boolean |
isKeepAlive()
Specify whether to use persistent connections.
|
boolean |
isNio()
已过时。
|
boolean |
isPathStyle()
Check whether path-style access to OBS is enabled.
|
boolean |
isStrictHostnameVerification()
Obtain the identifier specifying whether to verify the domain name
("false" by default).
|
boolean |
isUseReaper()
已过时。
|
boolean |
isValidateCertificate()
Check whether server-side verification is enabled.
|
boolean |
isVerifyResponseContentType()
Check whether "ContentType" in the response is verified.
|
void |
setAuthType(AuthTypeEnum authType)
Set the authentication type.
|
void |
setAuthTypeNegotiation(boolean authTypeNegotiation)
Specify whether to use protocol negotiation.
|
void |
setBufferSize(int bufferSize)
已过时。
|
void |
setCname(boolean cname)
Specify whether to use user-defined domain name.
|
void |
setConnectionRequestTimeout(int connectionRequestTimeout)
已过时。
|
void |
setConnectionTimeout(int connectionTimeout)
Set the timeout interval for establishing HTTP/HTTPS connections (in
milliseconds, 60,000 milliseconds by default).
|
void |
setCustomizedDnsImpl(okhttp3.Dns customizedDnsImpl)
set the customized Dns.
|
void |
setDefaultBucketLocation(String defaultBucketLocation)
已过时。
|
void |
setDelimiter(String delimiter)
Set folder isolators to slashes.
|
void |
setDisableDnsBucket(boolean disableDns)
Specify whether to enable path-style access to OBS.
|
void |
setEndPoint(String endPoint)
Set the endpoint for accessing OBS.
|
void |
setEndpointHttpPort(int endpointHttpPort)
Set the port number of the HTTP request (80 by default).
|
void |
setEndpointHttpsPort(int endpointHttpsPort)
Set the port number of the HTTPS request (443 by default).
|
void |
setEventListenerFactory(okhttp3.EventListener.Factory eventListenerFactory) |
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier) |
void |
setHttpDispatcher(okhttp3.Dispatcher httpDispatcher)
Obtain the customized dispatcher.
|
void |
setHttpProtocolType(HttpProtocolTypeEnum httpProtocolType)
Obtain the HTTP type used for accessing OBS servers.
|
void |
setHttpProxy(HttpProxyConfiguration httpProxy)
Configure the proxy.
|
void |
setHttpProxy(String proxyAddr,
int proxyPort,
String userName,
String password)
Configure the proxy server.
|
void |
setHttpProxy(String proxyAddr,
int proxyPort,
String userName,
String password,
String domain)
已过时。
|
void |
setHttpsOnly(boolean httpsOnly)
Specify whether to use HTTPS to connect OBS ("true" by default).
|
void |
setIdleConnectionTime(int idleConnectionTime)
Set the idle time for obtaining connections from the connection pool.
|
void |
setIsStrictHostnameVerification(boolean isStrictHostnameVerification)
Set the identifier specifying whether to verify the domain name.
|
void |
setKeepAlive(boolean keepAlive)
Check whether persistent connections are used.
|
void |
setKeyManagerFactory(KeyManagerFactory keyManagerFactory)
Set the factory for generating the "KeyManager" array.
|
void |
setLocalAuthTypeCacheCapacity(int localAuthTypeCacheCapacity) |
void |
setLocalTimeUtil(com.obs.services.internal.utils.LocalTimeUtil localTimeUtil) |
void |
setMaxConnections(int maxConnections)
Set the maximum number of HTTP connections (1000 by default) that can be
opened.
|
void |
setMaxErrorRetry(int maxErrorRetry)
Set the maximum number of retry attempts (5 by default) upon a request
failure (request exception, or error 500 or 503 on the server).
|
void |
setMaxIdleConnections(int maxIdleConnections)
Set the maximum number of idle connections in the connection pool.
|
void |
setPathStyle(boolean pathStyle)
Specify whether to enable path-style access to OBS.
|
void |
setReadBufferSize(int readBufferSize)
Set the read cache size used for uploading objects to socket streams (in
bytes).
|
void |
setSecureRandom(SecureRandom secureRandom) |
void |
setSignatString(String signatString)
已过时。
|
void |
setSocketReadBufferSize(int socketReadBufferSize)
Set the size (bytes) of the socket receive buffer, corresponding to the
"java.net.SocketOptions.SO_RVCBUF" parameter.
|
void |
setSocketTimeout(int socketTimeout)
Set the timeout interval for data transmission at the socket layer (in
milliseconds, 60,000 milliseconds by default).
|
void |
setSocketWriteBufferSize(int socketWriteBufferSize)
Set the size (bytes) of the socket send buffer (in bytes), corresponding
to the "java.net.SocketOptions.SO_SNDBUF" parameter.
|
void |
setSslContext(SSLContext sslContext) |
void |
setSslProvider(String sslProvider)
Obtain the provider of SSLContext.
|
void |
setTrustManagerFactory(TrustManagerFactory trustManagerFactory)
Set the factory for generating the "TrustManager" array.
|
void |
setUploadStreamRetryBufferSize(int uploadStreamRetryBufferSize)
已过时。
|
void |
setUseReaper(boolean useReaper)
已过时。
|
void |
setValidateCertificate(boolean validateCertificate)
Specify whether to enable server-side certificate verification.
|
void |
setVerifyResponseContentType(boolean verifyResponseContentType)
Specify whether to verify "ContentType" in the response.
|
void |
setWriteBufferSize(int writeBufferSize)
Set the write cache size used for uploading objects to socket streams (in
bytes).
|
void |
setXmlDocumentBuilderFactoryClass(String xmlDocumentBuilderFactoryClass) |
public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter - Folder isolator@Deprecated public String getSignatString()
@Deprecated public void setSignatString(String signatString)
@Deprecated public String getDefaultBucketLocation()
@Deprecated public void setDefaultBucketLocation(String defaultBucketLocation)
@Deprecated public int getBufferSize()
@Deprecated public void setBufferSize(int bufferSize)
public boolean isDisableDnsBucket()
public void setDisableDnsBucket(boolean disableDns)
disableDns - Whether to enable path-style access to OBS.public int getSocketReadBufferSize()
public void setSocketReadBufferSize(int socketReadBufferSize)
socketReadBufferSize - Socket receive buffer sizepublic int getSocketWriteBufferSize()
public void setSocketWriteBufferSize(int socketWriteBufferSize)
socketWriteBufferSize - socket Socket send buffer size@Deprecated public int getConnectionRequestTimeout()
@Deprecated public void setConnectionRequestTimeout(int connectionRequestTimeout)
@Deprecated public void disableNio()
@Deprecated public void enableNio()
@Deprecated public boolean isNio()
@Deprecated public boolean isUseReaper()
@Deprecated public void setUseReaper(boolean useReaper)
public KeyManagerFactory getKeyManagerFactory()
public void setKeyManagerFactory(KeyManagerFactory keyManagerFactory)
keyManagerFactory - Factory for generating the "KeyManager" arraypublic TrustManagerFactory getTrustManagerFactory()
public void setTrustManagerFactory(TrustManagerFactory trustManagerFactory)
trustManagerFactory - Factory for generating the "TrustManager" arraypublic boolean isStrictHostnameVerification()
public void setIsStrictHostnameVerification(boolean isStrictHostnameVerification)
isStrictHostnameVerification - Identifier specifying whether to verify the domain namepublic boolean isPathStyle()
public void setPathStyle(boolean pathStyle)
pathStyle - Whether to enable path-style access to OBS.public int getConnectionTimeout()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - Timeout interval for establishing HTTP/HTTPS connectionspublic int getMaxConnections()
public void setMaxConnections(int maxConnections)
maxConnections - Maximum number of concurrently opened HTTP connectionspublic int getMaxErrorRetry()
public void setMaxErrorRetry(int maxErrorRetry)
maxErrorRetry - Maximum number of retry attempts upon a request failurepublic int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
socketTimeout - Timeout interval for data transmission at the socket layerpublic String getEndPoint()
public void setEndPoint(String endPoint)
endPoint - OBS endpointpublic int getEndpointHttpPort()
public void setEndpointHttpPort(int endpointHttpPort)
endpointHttpPort - Port number of the HTTP requestpublic int getEndpointHttpsPort()
public void setEndpointHttpsPort(int endpointHttpsPort)
endpointHttpsPort - Port number of the HTTPS requestpublic void setHttpsOnly(boolean httpsOnly)
httpsOnly - Identifier specifying whether to use HTTPS to connect OBSpublic boolean isHttpsOnly()
public ObsConfiguration clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionpublic HttpProxyConfiguration getHttpProxy()
public void setHttpProxy(HttpProxyConfiguration httpProxy)
httpProxy - HTTP proxy configuration@Deprecated public void setHttpProxy(String proxyAddr, int proxyPort, String userName, String password, String domain)
proxyAddr - Proxy server addressproxyPort - Proxy server portuserName - Proxy usernamepassword - Proxy passworddomain - Proxy domainpublic void setHttpProxy(String proxyAddr, int proxyPort, String userName, String password)
proxyAddr - Proxy server addressproxyPort - Proxy server portuserName - Proxy usernamepassword - Proxy password@Deprecated public void setUploadStreamRetryBufferSize(int uploadStreamRetryBufferSize)
uploadStreamRetryBufferSize - Buffer size used for uploading stream objects@Deprecated public int getUploadStreamRetryBufferSize()
public boolean isValidateCertificate()
public void setValidateCertificate(boolean validateCertificate)
validateCertificate - Identifier specifying whether to enable server-side
verificationpublic boolean isVerifyResponseContentType()
public void setVerifyResponseContentType(boolean verifyResponseContentType)
verifyResponseContentType - Identifier specifying whether to verify "ContentType" in the
responsepublic int getReadBufferSize()
public void setReadBufferSize(int readBufferSize)
readBufferSize - Read cache size used for uploading objects to socket streamspublic int getWriteBufferSize()
public void setWriteBufferSize(int writeBufferSize)
writeBufferSize - Write cache size used for uploading objects to socket streamspublic int getIdleConnectionTime()
public void setIdleConnectionTime(int idleConnectionTime)
idleConnectionTime - Maximum idle time for obtaining connections from the
connection poolpublic int getMaxIdleConnections()
public void setMaxIdleConnections(int maxIdleConnections)
maxIdleConnections - Maximum number of idle connections in the connection poolpublic AuthTypeEnum getAuthType()
public void setAuthType(AuthTypeEnum authType)
authType - Authentication typepublic boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
keepAlive - Identifier specifying whether to use the persistent
connectionspublic boolean isAuthTypeNegotiation()
public void setAuthTypeNegotiation(boolean authTypeNegotiation)
authTypeNegotiation - Identifier specifying whether to use protocol negotiationpublic boolean isCname()
public void setCname(boolean cname)
cname - Identifier specifying whether to use user-defined domain namepublic String getSslProvider()
public void setSslProvider(String sslProvider)
sslProvider - SSLContext providerpublic HttpProtocolTypeEnum getHttpProtocolType()
public void setHttpProtocolType(HttpProtocolTypeEnum httpProtocolType)
httpProtocolType - HTTP typepublic okhttp3.Dispatcher getHttpDispatcher()
public void setHttpDispatcher(okhttp3.Dispatcher httpDispatcher)
httpDispatcher - Customized dispatcherpublic okhttp3.Dns getCustomizedDnsImpl()
public void setCustomizedDnsImpl(okhttp3.Dns customizedDnsImpl)
customizedDnsImpl - Customized Dnspublic HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
public String getXmlDocumentBuilderFactoryClass()
public void setXmlDocumentBuilderFactoryClass(String xmlDocumentBuilderFactoryClass)
public int getLocalAuthTypeCacheCapacity()
public void setLocalAuthTypeCacheCapacity(int localAuthTypeCacheCapacity)
public SecureRandom getSecureRandom()
public void setSecureRandom(SecureRandom secureRandom)
public okhttp3.EventListener.Factory getEventListenerFactory()
public void setEventListenerFactory(okhttp3.EventListener.Factory eventListenerFactory)
public com.obs.services.internal.utils.LocalTimeUtil getLocalTimeUtil()
public void setLocalTimeUtil(com.obs.services.internal.utils.LocalTimeUtil localTimeUtil)
public SSLContext getSslContext()
public void setSslContext(SSLContext sslContext)
Copyright © 2024. All rights reserved.