| Constructor and Description |
|---|
BaseUrl(okhttp3.HttpUrl url)
Creates BaseUrl to the specified url.
|
BaseUrl(String endpoint)
Creates BaseUrl to the specified endpoint.
|
BaseUrl(String endpoint,
int port,
boolean secure)
Creates BaseUrl to the specified endpoint, port and secure flag.
|
BaseUrl(URL url)
Creates BaseUrl to the specified url.
|
| Modifier and Type | Method and Description |
|---|---|
String |
awsDomainSuffix()
Gets AWS domain suffix.
|
String |
awsS3Prefix()
Gets AWS S3 prefix.
|
okhttp3.HttpUrl |
buildUrl(Http.Method method,
String bucketName,
String objectName,
String region,
Http.QueryParameters queryParams)
Builds URL for given parameters.
|
void |
disableDualStackEndpoint()
Disables dual-stack endpoint for Amazon S3 endpoint.
|
void |
disableVirtualStyleEndpoint()
Disables virtual-style endpoint.
|
void |
enableDualStackEndpoint()
Enables dual-stack endpoint for Amazon S3 endpoint.
|
void |
enableVirtualStyleEndpoint()
Enables virtual-style endpoint.
|
boolean |
isHttps()
Checks this base url is HTTPS scheme or not.
|
String |
region()
Gets region if present in this base url.
|
void |
setAwsS3Prefix(String awsS3Prefix)
Sets AWS S3 domain prefix.
|
void |
setRegion(String region)
Sets region to this base url.
|
String |
toString() |
public BaseUrl(String endpoint)
public BaseUrl(String endpoint, int port, boolean secure)
public BaseUrl(okhttp3.HttpUrl url)
public BaseUrl(URL url)
public boolean isHttps()
public String awsS3Prefix()
public String awsDomainSuffix()
public String region()
public void setRegion(String region)
public void enableDualStackEndpoint()
public void disableDualStackEndpoint()
public void enableVirtualStyleEndpoint()
public void disableVirtualStyleEndpoint()
public okhttp3.HttpUrl buildUrl(Http.Method method, String bucketName, String objectName, String region, Http.QueryParameters queryParams) throws MinioException
MinioException