eleme.openapi.sdk.media.upload.UploadClient Maven / Gradle / Ivy
package eleme.openapi.sdk.media.upload;
import eleme.openapi.sdk.media.Result;
/**
* upload client
*
* @author jinli Feb 5, 2015
*/
public interface UploadClient {
/**
* upload media files
*
* @param req req
* @return UploadResponse
*/
Result upload(UploadRequest req);
/**
* multipart init
*
* @param req req
* @return MultipartInitResponse
*/
Result multipartInit(MultipartInitRequest req);
/**
* multipart upload
*
* @param req req
* @return MultipartUploadResponse
*/
Result multipartUpload(MultipartUploadRequest req);
/**
* multipart complete
*
* @param req req
* @return MultipartCompleteResponse
*/
Result multipartComplete(MultipartCompleteRequest req);
/**
* multipart cancel
*
* @param req req
* @return Void void
*/
Result multipartCancel(MultipartCancelRequest req);
/**
* use trace for performance tuning
* default is on
*
* @param traceOn traceOn
*/
void setTraceOn(boolean traceOn);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy