Package | Description |
---|---|
com.netease.cloud | |
com.netease.cloud.auth | |
com.netease.cloud.http | |
com.netease.cloud.services.nos | |
com.netease.cloud.services.nos.internal | |
com.netease.cloud.services.nos.model |
Classes modeling the various types represented by Nos.
|
com.netease.cloud.services.nos.model.transform | |
com.netease.cloud.services.nos.tools | |
com.netease.cloud.services.nos.transfer | |
com.netease.cloud.services.nos.transfer.internal |
Modifier and Type | Class and Description |
---|---|
class |
ServiceException
Extension of ClientException that represents an error response returned by an
web service.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
AbstractSigner.hash(String text)
Hashes the string contents (assumed to be UTF-8) using the SHA-256
algorithm.
|
protected byte[] |
AbstractSigner.sign(byte[] data,
byte[] key,
SigningAlgorithm algorithm) |
protected byte[] |
AbstractStringSigner.sign(byte[] data,
byte[] key,
SigningAlgorithm algorithm) |
void |
Signer.sign(Request<?> request,
Credentials credentials) |
protected byte[] |
AbstractSigner.sign(String stringData,
byte[] key,
SigningAlgorithm algorithm) |
protected byte[] |
AbstractStringSigner.sign(String stringData,
byte[] key,
SigningAlgorithm algorithm) |
String |
StringSigner.sign(String stringToSign,
Credentials credentials) |
protected String |
AbstractSigner.signAndBase64Encode(byte[] data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature for an array of bytes and
returns the result as a Base64 encoded string.
|
protected String |
AbstractStringSigner.signAndBase64Encode(byte[] data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature for an array of bytes and
returns the result as a Base64 encoded string.
|
protected String |
AbstractSigner.signAndBase64Encode(String data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature and returns the result as a
Base64 encoded string.
|
protected String |
AbstractStringSigner.signAndBase64Encode(String data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature and returns the result as a
Base64 encoded string.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
NeteaseHttpClient.execute(Request<?> request,
HttpResponseHandler<WebServiceResponse<T>> responseHandler,
HttpResponseHandler<ServiceException> errorResponseHandler,
ExecutionContext executionContext)
Executes the request and returns the result.
|
Modifier and Type | Method and Description |
---|---|
void |
Nos.abortMultipartUpload(AbortMultipartUploadRequest request)
Aborts a multipart upload.
|
void |
NosClient.abortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest) |
CompleteMultipartUploadResult |
Nos.completeMultipartUpload(CompleteMultipartUploadRequest request)
Completes a multipart upload by assembling previously uploaded parts.
|
CompleteMultipartUploadResult |
NosClient.completeMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) |
void |
Nos.copyObject(CopyObjectRequest copyObjectRequest)
Copies a source object to a new destination in NOS.
|
void |
NosClient.copyObject(CopyObjectRequest copyObjectRequest) |
void |
Nos.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
Copies a source object to a new destination in NOS.
|
void |
NosClient.copyObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey) |
Bucket |
Nos.createBucket(CreateBucketRequest createBucketRequest)
Creates a new NOS bucket ,and you can specified the region,ACL,and
whether this bucket is deduplicate supported or not.
|
Bucket |
NosClient.createBucket(CreateBucketRequest createBucketRequest) |
Bucket |
Nos.createBucket(String bucketName)
Creates a new NOS bucket in the default region,
Region.CN_Hnagzhou .and default ACL
CannedAccessControlList.Private ,and default deduplicate status
DeduplicateStatus#Disabled |
Bucket |
NosClient.createBucket(String bucketName) |
Bucket |
Nos.createBucket(String bucketName,
Region region)
Creates a new NOS bucket with the specified name in the specified
region,and is supported dedupicate or not.
|
Bucket |
NosClient.createBucket(String bucketName,
Region region) |
Bucket |
Nos.createBucket(String bucketName,
String region)
Creates a new NOS bucket with the specified name in the specified
region,and is supported dedupicate or not.
|
Bucket |
NosClient.createBucket(String bucketName,
String region) |
void |
Nos.deleteBucket(DeleteBucketRequest deleteBucketRequest)
Deletes the specified bucket.
|
void |
NosClient.deleteBucket(DeleteBucketRequest deleteBucketRequest) |
void |
Nos.deleteBucket(String bucketName)
Deletes the specified bucket.
|
void |
NosClient.deleteBucket(String bucketName) |
void |
Nos.deleteBucketLifecycleConfiguration(String bucketName)
Removes the lifecycle configuration for the bucket specified.
|
void |
NosClient.deleteBucketLifecycleConfiguration(String bucketName) |
void |
Nos.deleteObject(DeleteObjectRequest deleteObjectRequest)
Deletes the specified object in the specified bucket.
|
void |
NosClient.deleteObject(DeleteObjectRequest deleteObjectRequest) |
void |
Nos.deleteObject(String bucketName,
String key)
Deletes the specified object in the specified bucket.
|
void |
NosClient.deleteObject(String bucketName,
String key) |
DeleteObjectsResult |
Nos.deleteObjects(DeleteObjectsRequest deleteObjectsRequest)
Deletes multiple objects in a single bucket from NOS.
|
boolean |
Nos.doesBucketExist(String bucketName)
See if the specified bucket exists.
|
boolean |
Nos.doesObjectExist(String bucketName,
String key)
See if the specified object exists.
|
URL |
Nos.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest)
Returns a pre-signed URL for accessing an NOS resource.
|
URL |
NosClient.generatePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest) |
URL |
Nos.generatePresignedUrl(String bucketName,
String key,
Date expiration)
Returns a pre-signed URL for accessing an NOS resource.
|
URL |
NosClient.generatePresignedUrl(String bucketName,
String key,
Date expiration) |
URL |
Nos.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethod method)
Returns a pre-signed URL for accessing an NOS resource.
|
URL |
NosClient.generatePresignedUrl(String bucketName,
String key,
Date expiration,
HttpMethod method) |
CannedAccessControlList |
Nos.getBucketAcl(GetBucketAclRequest getBucketAclRequest)
Gets the (ACL) of the specified bucket,Each bucket has an ACL that
defines its access control policy.
|
CannedAccessControlList |
NosClient.getBucketAcl(GetBucketAclRequest getBucketAclRequest) |
CannedAccessControlList |
Nos.getBucketAcl(String bucketName)
Gets the
CannedAccessControlList (ACL) of the specified
bucket,Each bucket has an ACL that defines its access control policy. |
CannedAccessControlList |
NosClient.getBucketAcl(String bucketName) |
GetBucketDefault404Result |
NosClient.getBucketDefault404(GetBucketDefault404Request getBucketDefault404Request) |
GetBucketDefault404Result |
NosClient.getBucketDefault404(String bucketName) |
BucketLifecycleConfiguration |
Nos.getBucketLifecycleConfiguration(String bucketName)
Gets the lifecycle configuration for the specified bucket.
|
BucketLifecycleConfiguration |
NosClient.getBucketLifecycleConfiguration(String bucketName) |
String |
Nos.getBucketLocation(GetBucketLocationRequest getBucketLocationRequest)
Gets the geographical region where Nos stores the specified bucket.
|
String |
NosClient.getBucketLocation(GetBucketLocationRequest getBucketLocationRequest) |
String |
Nos.getBucketLocation(String bucketName)
Gets the geographical region where Nos stores the specified bucket.
|
String |
NosClient.getBucketLocation(String bucketName) |
GetBucketStatsResult |
Nos.getBucketStats(String bucketName)
Gets the stats(objectCount, storageCapacity, deduplicationRate) for the bucket specified.
|
GetBucketStatsResult |
NosClient.getBucketStats(String bucketName) |
NOSObject |
Nos.getObject(GetObjectRequest getObjectRequest)
Gets the object stored in NOS under the specified bucket and key.
|
NOSObject |
NosClient.getObject(GetObjectRequest getObjectRequest) |
ObjectMetadata |
Nos.getObject(GetObjectRequest getObjectRequest,
File destinationFile)
Gets the object metadata for the object stored in NOS under the specified
bucket and key, and saves the object contents to the specified file.
|
ObjectMetadata |
NosClient.getObject(GetObjectRequest getObjectRequest,
File destinationFile) |
NOSObject |
Nos.getObject(String bucketName,
String key)
Gets the object stored in NOS under the specified bucket and key.
|
NOSObject |
NosClient.getObject(String bucketName,
String key) |
ObjectMetadata |
Nos.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest)
Gets the metadata for the specified object without actually fetching the
object itself.
|
ObjectMetadata |
NosClient.getObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest) |
ObjectMetadata |
Nos.getObjectMetadata(String bucketName,
String key)
Gets the metadata for the specified object without actually fetching the
object itself.
|
ObjectMetadata |
NosClient.getObjectMetadata(String bucketName,
String key) |
InitiateMultipartUploadResult |
Nos.initiateMultipartUpload(InitiateMultipartUploadRequest request)
Initiates a multipart upload and returns an InitiateMultipartUploadResult
which contains an upload ID.
|
InitiateMultipartUploadResult |
NosClient.initiateMultipartUpload(InitiateMultipartUploadRequest initiateMultipartUploadRequest) |
List<Bucket> |
Nos.listBuckets()
List your all buckets owned by you.
|
List<Bucket> |
NosClient.listBuckets() |
List<Bucket> |
Nos.listBuckets(ListBucketsRequest listBucketsRequest) |
List<Bucket> |
NosClient.listBuckets(ListBucketsRequest listBucketsRequest) |
MultipartUploadListing |
Nos.listMultipartUploads(ListMultipartUploadsRequest request)
Lists in-progress multipart uploads.
|
MultipartUploadListing |
NosClient.listMultipartUploads(ListMultipartUploadsRequest listMultipartUploadsRequest) |
ObjectListing |
Nos.listObjects(ListObjectsRequest listObjectsRequest)
According to some query condition to return a list of summary information
about the objects in the specified buckets.
|
ObjectListing |
NosClient.listObjects(ListObjectsRequest listObjectsRequest) |
ObjectListing |
Nos.listObjects(String bucketName)
Returns a list of summary information about the objects in the specified
buckets.
|
ObjectListing |
NosClient.listObjects(String bucketName) |
PartListing |
Nos.listParts(ListPartsRequest request)
Lists the parts that have been uploaded for a specific multipart upload.
|
PartListing |
NosClient.listParts(ListPartsRequest listPartsRequest) |
void |
Nos.moveObject(MoveObjectRequest moveObjectRequest)
move a source object to a new destination in NOS.
|
void |
NosClient.moveObject(MoveObjectRequest moveObjectRequest) |
void |
Nos.moveObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey)
move a source object to a new destination in NOS.
|
void |
NosClient.moveObject(String sourceBucketName,
String sourceKey,
String destinationBucketName,
String destinationKey) |
PutObjectResult |
Nos.putObject(PutObjectRequest putObjectRequest)
Uploads a new object to the specified NOS bucket.
|
PutObjectResult |
NosClient.putObject(PutObjectRequest putObjectRequest) |
PutObjectResult |
NosClient.putObject(String bucketName,
File file) |
PutObjectResult |
Nos.putObject(String bucketName,
String key,
File file)
Uploads the specified file to NOS under the specified bucket and key
name.
|
PutObjectResult |
NosClient.putObject(String bucketName,
String key,
File file) |
PutObjectResult |
Nos.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata)
Uploads the specified input stream and object metadata to NOS under the
specified bucket and key name.
|
PutObjectResult |
NosClient.putObject(String bucketName,
String key,
InputStream input,
ObjectMetadata metadata) |
void |
Nos.putObjectMeta(String bucketName,
String key,
ObjectMetadata metadata) |
void |
NosClient.putObjectMeta(String bucketName,
String key,
ObjectMetadata metadata) |
void |
Nos.setBucketAcl(SetBucketAclRequest setBucketAclRequest)
Sets the
CannedAccessControlList (ACL)for the specified
bucket,Each bucket has an ACL that defines its access control policy.if
the ACL is private,anybody expect you can access objects in the bucket,if
the ACL is private-read,then others can download the objects in this
bucket. |
void |
NosClient.setBucketAcl(SetBucketAclRequest setBucketAclRequest) |
void |
Nos.setBucketAcl(String bucketName,
CannedAccessControlList acl)
Sets the
CannedAccessControlList (ACL)for the specified
bucket,Each bucket has an ACL that defines its access control policy.if
the ACL is private,anybody expect you can access objects in the bucket,if
the ACL is private-read,then others can download the objects in this
bucket. |
void |
NosClient.setBucketAcl(String bucketName,
CannedAccessControlList acl) |
void |
NosClient.setBucketDefault404(PutBucketDefault404Request putBucketDefault404Request) |
void |
NosClient.setBucketDefault404(String bucketName,
String default404Object) |
void |
Nos.setBucketLifecycleConfiguration(SetBucketLifecycleConfigurationRequest setBucketLifecycleConfigurationRequest)
Sets the lifecycle configuration for the specified bucket.
|
void |
NosClient.setBucketLifecycleConfiguration(SetBucketLifecycleConfigurationRequest setBucketLifecycleConfigurationRequest) |
void |
Nos.setBucketLifecycleConfiguration(String bucketName,
BucketLifecycleConfiguration bucketLifecycleConfiguration)
Sets the lifecycle configuration for the specified bucket.
|
void |
NosClient.setBucketLifecycleConfiguration(String bucketName,
BucketLifecycleConfiguration bucketLifecycleConfiguration) |
UploadPartResult |
Nos.uploadPart(UploadPartRequest request)
Uploads a part in a multipart upload.
|
UploadPartResult |
NosClient.uploadPart(UploadPartRequest uploadPartRequest) |
Modifier and Type | Method and Description |
---|---|
void |
NosSigner.sign(Request<?> request,
Credentials credentials) |
void |
NosQueryStringSigner.sign(Request<?> request,
Credentials credentials) |
Modifier and Type | Class and Description |
---|---|
class |
MultiObjectDeleteException
Exception for partial or total failure of the multi-object delete API,
including the errors that occurred.
|
class |
NOSException
Provides an extension of the ServiceException for errors reported by Nos
while processing a request.
|
Constructor and Description |
---|
XmlResponsesSaxParser()
Constructs the XML SAX parser.
|
Modifier and Type | Method and Description |
---|---|
void |
noscmd.uploadDir(String bucketName,
String virtualDirectoryKeyPrefix,
File directory,
boolean includeSubdirectories,
boolean iscover) |
Modifier and Type | Method and Description |
---|---|
ClientException |
Transfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
Modifier and Type | Method and Description |
---|---|
void |
TransferManager.abortMultipartUploads(String bucketName,
Date date)
Aborts any multipart uploads that were initiated before the specified
date.
|
Upload |
TransferManager.upload(PutObjectRequest putObjectRequest)
Schedules a new transfer to upload data to Nos.
|
Upload |
TransferManager.upload(String bucketName,
String key,
File file)
Schedules a new transfer to upload data to Nos.
|
Upload |
TransferManager.upload(String bucketName,
String key,
InputStream input,
ObjectMetadata objectMetadata)
Schedules a new transfer to upload data to Nos.
|
void |
Transfer.waitForCompletion()
Waits for this transfer to complete.
|
UploadResult |
Upload.waitForUploadResult()
Waits for this upload to complete and returns the result of this upload.
|
Modifier and Type | Method and Description |
---|---|
protected ClientException |
AbstractTransfer.unwrapExecutionException(ExecutionException e)
Unwraps the root exception that caused the specified ExecutionException
and returns it.
|
ClientException |
AbstractTransfer.waitForException()
Waits for this transfer to finish and returns any error that occurred, or
returns
null if no errors occurred. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTransfer.waitForCompletion()
Waits for this transfer to complete.
|
UploadResult |
UploadImpl.waitForUploadResult()
Waits for this upload to complete and returns the result of this
upload.
|
Copyright © 2017. All Rights Reserved.