public class S3ClientOptions extends Object
限定符和类型 | 字段和说明 |
---|---|
static boolean |
DEFAULT_PATH_STYLE_ACCESS
The default setting for use of path-style access
|
构造器和说明 |
---|
S3ClientOptions() |
S3ClientOptions(S3ClientOptions other) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
isPathStyleAccess()
Returns whether the client uses path-style access for all requests.
|
void |
setPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
|
S3ClientOptions |
withPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
|
public static final boolean DEFAULT_PATH_STYLE_ACCESS
public S3ClientOptions()
public S3ClientOptions(S3ClientOptions other)
public boolean isPathStyleAccess()
Returns whether the client uses path-style access for all requests.
Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket.
The default behaviour is to detect which access style to use based on the configured endpoint (an IP will result in path-style access) and the bucket being accessed (some buckets are not valid DNS names). Setting this flag will result in path-style access being used for all requests.
public void setPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket.
The default behaviour is to detect which access style to use based on the configured endpoint (an IP will result in path-style access) and the bucket being accessed (some buckets are not valid DNS names). Setting this flag will result in path-style access being used for all requests.
pathStyleAccess
- True to always use path-style access.public S3ClientOptions withPathStyleAccess(boolean pathStyleAccess)
Configures the client to use path-style access for all requests.
Amazon S3 supports virtual-hosted-style and path-style access in all Regions. The path-style syntax, however, requires that you use the region-specific endpoint when attempting to access a bucket.
The default behaviour is to detect which access style to use based on the configured endpoint (an IP will result in path-style access) and the bucket being accessed (some buckets are not valid DNS names). Setting this flag will result in path-style access being used for all requests.
pathStyleAccess
- True to always use path-style access.Copyright © 2016. All rights reserved.