| 构造器和说明 |
|---|
ObsConfiguration()
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
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).
|
String |
getDefaultBucketLocation()
已过时。
|
String |
getDelimiter() |
String |
getEndPoint()
Obtain the endpoint for accessing OBS.
|
int |
getEndpointHttpPort()
已过时。
|
int |
getEndpointHttpsPort()
已过时。
|
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 |
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).
|
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.
|
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).
|
boolean |
isAuthTypeNegotiation()
Check whether protocol negotiation is used.
|
boolean |
isCname()
Check whether user-defined domain name is used.
|
boolean |
isDisableDnsBucket()
已过时。
|
boolean |
isHttpsOnly()
已过时。
|
boolean |
isKeepAlive()
Specify whether to use persistent connections.
|
boolean |
isNio()
已过时。
|
boolean |
isPathStyle()
已过时。
|
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 |
setDefaultBucketLocation(String defaultBucketLocation)
已过时。
|
void |
setDelimiter(String delimiter)
Set folder isolators to slashes.
|
void |
setDisableDnsBucket(boolean disableDns)
已过时。
|
void |
setEndPoint(String endPoint)
Set the endpoint for accessing OBS.
|
void |
setEndpointHttpPort(int endpointHttpPort)
已过时。
|
void |
setEndpointHttpsPort(int endpointHttpsPort)
已过时。
|
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)
已过时。
|
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 |
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)
已过时。
|
void |
setReadBufferSize(int readBufferSize)
Set the read cache size used for uploading objects to socket streams (in
bytes).
|
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 |
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).
|
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)
@Deprecated public boolean isDisableDnsBucket()
@Deprecated 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 name@Deprecated public boolean isPathStyle()
@Deprecated 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 endpoint@Deprecated public int getEndpointHttpPort()
@Deprecated public void setEndpointHttpPort(int endpointHttpPort)
endpointHttpPort - Port number of the HTTP request@Deprecated public int getEndpointHttpsPort()
@Deprecated public void setEndpointHttpsPort(int endpointHttpsPort)
endpointHttpsPort - Port number of the HTTPS request@Deprecated public void setHttpsOnly(boolean httpsOnly)
httpsOnly - Identifier specifying whether to use HTTPS to connect OBS@Deprecated public boolean isHttpsOnly()
public Object 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 dispatcherCopyright © 2021. All rights reserved.