public class PutObjectRequest extends Ks3WebServiceRequest implements SSECustomerKeyRequest
| 构造器和说明 |
|---|
PutObjectRequest(String bucketname,
String key,
File file) |
PutObjectRequest(String bucketname,
String key,
InputStream inputStream,
ObjectMetadata metadata) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
buildRequest(Request request) |
AccessControlList |
getAcl() |
List<Adp> |
getAdps() |
String |
getBucket() |
CallBackConfiguration |
getCallBackConfiguration() |
CannedAccessControlList |
getCannedAcl() |
File |
getFile() |
InputStream |
getInputStream() |
String |
getKey() |
String |
getNotifyURL() |
ObjectMetadata |
getObjectMeta() |
String |
getRedirectLocation() |
SSECustomerKey |
getSseCustomerKey() |
void |
onFinally() |
void |
setAcl(AccessControlList acl) |
void |
setAdps(List<Adp> adps) |
void |
setBucket(String bucket) |
void |
setCallBackConfiguration(CallBackConfiguration callBackConfiguration) |
void |
setCannedAcl(CannedAccessControlList cannedAcl) |
void |
setFile(File file) |
void |
setInputStream(InputStream inputStream) |
void |
setKey(String key) |
void |
setNotifyURL(String notifyURL) |
void |
setObjectMeta(ObjectMetadata objectMeta) |
void |
setRedirectLocation(String redirectLocation) |
void |
setSseCustomerKey(SSECustomerKey sseCustomerKey) |
void |
validateParams() |
getRequestConfig, setRequestConfigpublic PutObjectRequest(String bucketname, String key, File file)
bucketname - key - file - 要上传的文件public PutObjectRequest(String bucketname, String key, InputStream inputStream, ObjectMetadata metadata)
bucketname - key - inputStream - metadata - 请尽量提供content-length,否则可能会导致jvm内存溢出public void validateParams()
throws IllegalArgumentException
validateParams 在类中 Ks3WebServiceRequestIllegalArgumentExceptionpublic String getBucket()
public void setBucket(String bucket)
public String getKey()
public void setKey(String key)
public InputStream getInputStream()
public void setInputStream(InputStream inputStream)
public File getFile()
public void setFile(File file)
public ObjectMetadata getObjectMeta()
public void setObjectMeta(ObjectMetadata objectMeta)
public CannedAccessControlList getCannedAcl()
public void setCannedAcl(CannedAccessControlList cannedAcl)
public AccessControlList getAcl()
public void setAcl(AccessControlList acl)
public String getRedirectLocation()
public void setRedirectLocation(String redirectLocation)
public CallBackConfiguration getCallBackConfiguration()
public void setCallBackConfiguration(CallBackConfiguration callBackConfiguration)
public String getNotifyURL()
public void setNotifyURL(String notifyURL)
public SSECustomerKey getSseCustomerKey()
getSseCustomerKey 在接口中 SSECustomerKeyRequestpublic void setSseCustomerKey(SSECustomerKey sseCustomerKey)
setSseCustomerKey 在接口中 SSECustomerKeyRequestpublic void buildRequest(Request request)
buildRequest 在类中 Ks3WebServiceRequestpublic void onFinally()
onFinally 在类中 Ks3WebServiceRequestCopyright © 2016. All rights reserved.