com.netease.cloud.services.nos.internal
public class BucketNameUtils extends Object
Constructor and Description |
---|
BucketNameUtils() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDNSBucketName(String bucketName)
Convience method that allows the DNS rules to be altered for different
SDKs.
|
boolean |
isValidV2BucketName(String bucketName)
Returns true if the specified bucket name can be addressed using V2,
virtual host style, addressing.
|
void |
validateBucketName(String bucketName)
Validates that the specified bucket name is valid for Nos V2 naming (i.e.
|
public void validateBucketName(String bucketName) throws IllegalArgumentException
bucketName
- The bucket name to validate.IllegalArgumentException
- If the specified bucket name doesn't follow Nos's guidelines.public boolean isValidV2BucketName(String bucketName)
bucketName
- The name of the bucket to check.public boolean isDNSBucketName(String bucketName)
Copyright © 2017. All Rights Reserved.