Package io.minio
Class Http.BaseUrl
java.lang.Object
io.minio.Http.BaseUrl
- Enclosing class:
- Http
Base URL of S3 endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates BaseUrl to the specified endpoint.Creates BaseUrl to the specified endpoint, port and secure flag.Creates BaseUrl to the specified url.BaseUrl(okhttp3.HttpUrl url) Creates BaseUrl to the specified url. -
Method Summary
Modifier and TypeMethodDescriptionGets AWS domain suffix.Gets AWS S3 prefix.okhttp3.HttpUrlbuildUrl(Http.Method method, String bucketName, String objectName, String region, Http.QueryParameters queryParams) Builds URL for given parameters.voidDisables dual-stack endpoint for Amazon S3 endpoint.voidDisables virtual-style endpoint.voidEnables dual-stack endpoint for Amazon S3 endpoint.voidEnables virtual-style endpoint.booleanisHttps()Checks this base url is HTTPS scheme or not.region()Gets region if present in this base url.voidsetAwsS3Prefix(String awsS3Prefix) Sets AWS S3 domain prefix.voidSets region to this base url.toString()
-
Constructor Details
-
BaseUrl
Creates BaseUrl to the specified endpoint. -
BaseUrl
Creates BaseUrl to the specified endpoint, port and secure flag. -
BaseUrl
public BaseUrl(okhttp3.HttpUrl url) Creates BaseUrl to the specified url. -
BaseUrl
Creates BaseUrl to the specified url.
-
-
Method Details
-
isHttps
public boolean isHttps()Checks this base url is HTTPS scheme or not. -
awsS3Prefix
Gets AWS S3 prefix. -
awsDomainSuffix
Gets AWS domain suffix. -
region
Gets region if present in this base url. -
setRegion
Sets region to this base url. -
enableDualStackEndpoint
public void enableDualStackEndpoint()Enables dual-stack endpoint for Amazon S3 endpoint. -
disableDualStackEndpoint
public void disableDualStackEndpoint()Disables dual-stack endpoint for Amazon S3 endpoint. -
enableVirtualStyleEndpoint
public void enableVirtualStyleEndpoint()Enables virtual-style endpoint. -
disableVirtualStyleEndpoint
public void disableVirtualStyleEndpoint()Disables virtual-style endpoint. -
setAwsS3Prefix
Sets AWS S3 domain prefix. -
buildUrl
public okhttp3.HttpUrl buildUrl(Http.Method method, String bucketName, String objectName, String region, Http.QueryParameters queryParams) throws MinioException Builds URL for given parameters.- Throws:
MinioException
-
toString
-