Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public final class RequestParameters {
public static final String MARKER = "marker";
public static final String MAX_KEYS = "max-keys";
public static final String ENCODING_TYPE = "encoding-type";
public static final String LIST_TYPE = "list-type";

public static final String UPLOAD_ID = "uploadId";
public static final String PART_NUMBER = "partNumber";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import static com.alibaba.sdk.android.oss.common.RequestParameters.DELIMITER;
import static com.alibaba.sdk.android.oss.common.RequestParameters.ENCODING_TYPE;
import static com.alibaba.sdk.android.oss.common.RequestParameters.KEY_MARKER;
import static com.alibaba.sdk.android.oss.common.RequestParameters.LIST_TYPE;
import static com.alibaba.sdk.android.oss.common.RequestParameters.MARKER;
import static com.alibaba.sdk.android.oss.common.RequestParameters.MAX_KEYS;
import static com.alibaba.sdk.android.oss.common.RequestParameters.MAX_UPLOADS;
Expand Down Expand Up @@ -173,6 +174,10 @@ public static void populateListObjectsRequestParameters(ListObjectsRequest listO
if (listObjectsRequest.getEncodingType() != null) {
params.put(ENCODING_TYPE, listObjectsRequest.getEncodingType());
}

if (listObjectsRequest.getListType() != null) {
params.put(LIST_TYPE, listObjectsRequest.getListType());
}
}

public static void populateListMultipartUploadsRequestParameters(ListMultipartUploadsRequest request,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class ListObjectsRequest extends OSSRequest {
// delimiter for grouping object keys.
private String delimiter;

//the object listType
private String listType;

/**
* The encoding type of the object name in the response body. For now object name could have any unicode character.
* However the XML1.0 cannot handle some unicode characters such as ASCII 0 to 10.
Expand Down Expand Up @@ -167,4 +170,22 @@ public String getEncodingType() {
public void setEncodingType(String encodingType) {
this.encodingType = encodingType;
}

/**
* Sets the object listType
*
* @param listType the listType to set
*/
public void setListType(String listType) {
this.listType = listType;
}

/**
* Gets the ListType of the object
*
* @return the ListType of the object
*/
public String getListType() {
return listType;
}
}