Java SDK

Last Updated: Sep 27, 2017

The latest version of Java SDK

Click to view

Java SDK (2017-02-22) Version 2.5.0

Download Java SDK: aliyun_java_sdk_20170222.zip

Updates:

  • Added: the support for get bucket stat
  • Added: CNAME support for IsPurgeCdnCache
  • Added: force close for OSSObject features
  • Fixed: local files with the same name will not be renamed if the resumable download is unsuccessful
  • Fixed: add the BucketInfo parsing for ExtranetEndpoint/IntranetEndpoint
  • Fixed: fix the IndexOutOfBoundException exception when the key is “”
  • Fixed: the NullPointerException exception of initiateMultipartUpload in some specific situations
  • Optimized: added the direct description of permissions in AccessControlList
  • Optimized: unify the responses returned after the UDF/upload callback
  • Optimized: added context information in the description information in the InvalidResponse exception

Java SDK (2017-01-09) Version 2.4.1

Download Java SDK: aliyun_java_sdk_20170109.zip

Updates:

  • Fixed: GeneratePresignedUrlRequest support of callback
  • Fixed: GetObjectToFile support of CRC verification
  • Fixed: PutObject With URL support of CRC verification

Java SDK (2016-11-21) Version 2.4.0

Download Java SDK: aliyun_java_sdk_20161121.zip

Updates:

  • Added: support for Symbol Link
  • Added: support of image for querystring, and support for RangGet and slash
  • Added: support for Prefix and Action for cross-region copy
  • Fixed: image service format changed from setparams to setProcess. Both formats are available

Java SDK (2016-08-11) Version 2.3.0

Download Java SDK: aliyun_java_sdk_20160811.zip

Updates:

  • Support of the RTMP feature
  • Support for the CRC64 verification feature
  • Support for the OSS and IMG merger
  • Support for Proxy access to OSS
  • Fixed the bug where an exception is thrown by OSSClient.shutdown
  • Added automatic sorting of part list during multipart upload and submission
  • Optimized merge test cases
  • Added support for request-level timeout

Java SDK (2016-05-10) Version 2.2.3

Download Java SDK: aliyun_java_sdk_20160510.zip

Updates:

  • Added support for returning the RequestId for normal data operation requests
  • Added support for URL encoding of listMultipartUploads/listParts;
  • Fixed the bug where getSimplifiedObjectMeta did not close the connection
  • Fixed the bug where InvalidResponse was returned by doesObjectExist
  • Added support for request timeout settings
  • Added easy-to-use constructors for UploadPartRequest/UploadPartCopyRequest

Java SDK (2016-03-01) Version 2.2.1

Download Java SDK: aliyun_java_sdk_20160301.zip

Updates:

  • Added support for concurrent uploads/downloads of resumable uploads/downloads
  • Added support for the upload callback feature
  • Added the AliCDN type for conditioned redirection

Java SDK (2016-02-01) Version 2.2.0

Download Java SDK: aliyun_java_sdk_20160201.zip

Updates:

  • Added support for the CNAME feature
  • Added support for cross-cluster replication
  • Added support for the image write-back configuration feature
  • Added support for bucket storage settings
  • Added the GetObjectMeta interface to get object metadata
  • Enhanced the website feature and added support for redirection
  • Added the GetBucketInfo interface to get related bucket information
  • Enhanced the lifecycle feature and added support for object timeout by create time and multipart timeout

Java SDK (2016-01-30) Version 2.1.2

Download Java SDK: aliyun_java_sdk_20160130.zip

Updates:

  • Added the interface for getting the connection timeout from the connection pool
  • Fixed the bug when using a timed-out connection
  • Fixed the bug related to insufficient cache for retries
  • Added the feature to automatically identify IP-format endpoints

Java SDK (2015-12-23) Version 2.1.0

Download Java SDK: aliyun_java_sdk_20151223.zip

Updates:

  • Removed the log4j.properties configuration file
  • Added the Put/Get/Delete Bucket Tagging interfaces

Java SDK (2015-11-24) Version 2.0.7

Download Java SDK: aliyun_java_sdk_20151124.zip

Updates:

  • Fixed the bug in SetObjectAcl
  • Removed the log4j dependency and adopted commons-logging

Java SDK (2015-09-22) Version 2.0.6

Updates:

  • Added the setObjectAcl and getObjectAcl interfaces to configure and obtain the ACL of a specified object
  • Added the ClientConfiguration.setLogLevel interface to set the global log level. By default, the level of Error Code 404 log is set to INFO
  • Added the ClientConfiguration.setSLDEnabled interface to configure whether to enable second-level domain access
  • Added the ClientConfiguration.setSupportCname interface to configure whether a CNAME can be used as an endpoint
  • Output “Invalid Response” error details, and improved the OssException and ClientException error messages
  • Fixed the bug related to setting the bucket default ACL to private;
  • Fixed the bug in chunked encoding supported by “upload part”, and packaged the input stream as a retriable input stream
  • Added webp to the “mime types” list

Java SDK (2015-07-10) Version 2.0.5

Download Java SDK: aliyun_java_sdk_20150710.zip

Updates:

  • Added support for the Append Object
  • Added HTTPS support
  • Added the encoding-type parameter in the DeleteObject and ListObjects interfaces for users to specify the encoding method for the object name
  • Removed the mandatory check of the date format in the Expires response header, and fixed the issue that the system could not parse Expires response headers not using the GMT date format

Java SDK (2015-05-29) Version 2.0.4

Download Java SDK: aliyun_java_sdk_20150529.zip

Updates:

  • Added STS support
  • Added a test Demo Jar. For specific usage, refer to Readme.txt in the demo folder
  • Modified the CreateBucket logic to allow users to specify the bucket ACL during bucket creation
  • Modified the bucket name check rules to allow operations on existing buckets with underlines, but not the creation of buckets with underlines
  • Optimized the HTTP connection pool, enhancing its concurrent processing capability

Java SDK (2015-04-24) Version 2.0.3

Download Java SDK: aliyun_java_sdk_20150424.zip

Updates:

  • Added the deleteObjects interface to delete object lists by batch
  • Added the doesObjectExist interface to identify whether the object under a specified bucket exists
  • Added the switchCredentials interface to replace the credentials of an existing OSSClient instance
  • Added the OSSClient constructor with CredentialsProvider to allow for more extension and customization of CredentialsProvider;
  • Fixed the bug that occurred when the Source Key of the copyObject interface contains a + sign
  • Adjusted the display format of the OSSException/ClientException information

Java SDK (2015-03-23) Version 2.0.2

Download Java SDK: aliyun_java_sdk_20150323.zip

Updates:

  • Added the GeneratePostPolicy/calculatePostSignature interfaces to generate the Policy string and Post signature for Post requests
  • Supported the bucket lifecycle
  • Added the URL signature-based Put/GetObject overload interface
  • Supported data upload for PutObject and UploadPart in the Chunked-encoding method
  • Fixed several bugs

Java SDK (2015-01-15) Version 2.0.1

Download Java SDK: aliyun_java_sdk_20150115.zip

Updates:

  • Supported CNAME to allow users to specify which domain names are retained
  • Supported user-specified ContentType and ContentMD5 during URI generation
  • Fixed the issue that CopyObject requests do not support server-side encryption
  • Changed the UserAgent format
  • Expanded the location constant and added some samples

Java SDK (2014-11-13)

Download Java SDK: aliyun_java_sdk_20141113.zip

Newly added: Upload Part Copy feature OSS Java SDK source code Example code

Note: In Version 2.0.0, the OSS Java SDK removed the OTS-related code in previous versions, adjusted the package structure, and added the OSS SDK source code and example code. Programs developed using a version earlier than 2.0.0 must change the referenced package name when using version 2.0.0. The package names com.aliyun.openservices.* and com.aliyun.openservices.oss.* are changed to com.aliyun.oss.*.

Thank you! We've received your feedback.