Overview (SDK for Java)
If you have any questions during development, post them on the Issues page of GitHub.
OBS Java SDK provides abundant APIs for object download in the following methods:
Request Parameters
Parameter |
Type |
Mandatory (Yes/No) |
Description |
---|---|---|---|
isEncodeHeaders |
boolean |
No |
Whether to automatically encode the request header. The default value is true. |
userHeaders |
HashMap<String, String> |
No |
User's header field. |
ifMatchTag |
String |
No |
Returns the object content if the object's ETag is the same as this parameter value. Otherwise, an error is reported. |
ifNoneMatchTag |
String |
No |
Returns the object content if the object's ETag is different from this parameter value. Otherwise, an error is reported. |
ifModifiedSince |
Date |
No |
Returns the object if it has been modified since the specified time; otherwise, an error is returned. |
ifUnmodifiedSince |
Date |
No |
Returns the object if it has not been modified since the specified time; otherwise, an error is returned. |
rangeStart |
Long |
No |
Start byte for a partial download. |
rangeEnd |
Long |
No |
End byte for a partial download. |
replaceMetadata |
ObjectRepleaceMetadata |
No |
Rewrites response headers when objects are downloaded. |
sseCHeader |
SseCHeader |
No |
Information about the server-side encryption header. |
versionId |
String |
No |
Version number. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot