public BoxFileUploadSessionPartList listParts ( int offset , int limit ) { URL listPartsURL = this . sessionInfo . getSessionEndpoints ( ) . getListPartsEndpoint ( ) ; URLTemplate template = new URLTemplate ( listPartsURL . toString ( ) ) ; QueryStringBuilder builder = new QueryStringBuilder ( ) ; builder . appendParam ( OFFSET_QUERY_STRING , offset ) ; String queryString = builder . appendParam ( LIMIT_QUERY_STRING , limit ) . toString ( ) ; //Template is initalized with the full URL. So empty string for the path. URL url = template . buildWithQuery ( "" , queryString ) ; BoxJSONRequest request = new BoxJSONRequest ( this . getAPI ( ) , url , HttpMethod . GET ) ; BoxJSONResponse response = ( BoxJSONResponse ) request . send ( ) ; JsonObject jsonObject = JsonObject . readFrom ( response . getJSON ( ) ) ; return new BoxFileUploadSessionPartList ( jsonObject ) ; }
Returns a list of all parts that have been uploaded to an upload session .