类 PostSignatureRequest
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.PostSignatureRequest
- 直接已知子类:
V4PostSignatureRequest
Parameters in a request for browser-based authorized access
-
字段概要
字段 -
构造器概要
构造器构造器说明PostSignatureRequest(long expires, String bucketName, String objectKey) ConstructorPostSignatureRequest(long expires, Date requestDate, String bucketName, String objectKey) PostSignatureRequest(Date expiryDate, String bucketName, String objectKey) ConstructorPostSignatureRequest(Date expiryDate, Date requestDate, String bucketName, String objectKey) -
方法概要
修饰符和类型方法说明Obtain the bucket name.Obtain the restrictions of the form.longObtain the validity period.Set the expiration date.Obtain the form parameters of the request.Obtain the object name.Set the request time.voidsetBucketName(String bucketName) Set the bucket name.voidsetConditions(List<String> conditions) Set the restrictions of the form.voidsetExpires(long expires) Set the validity period (in seconds).voidsetExpiryDate(Date expiryDate) Obtain the expiration date.voidsetFormParams(Map<String, Object> formParams) Set the form parameters of the request.voidsetObjectKey(String objectKey) Set the object name.voidsetRequestDate(Date requestDate) Set the request time.toString()
-
字段详细资料
-
requestDate
-
expiryDate
-
bucketName
-
objectKey
-
expires
private long expires -
formParams
-
conditions
-
-
构造器详细资料
-
PostSignatureRequest
public PostSignatureRequest() -
PostSignatureRequest
Constructor- 参数:
expires- Expiration time (in seconds)bucketName- Bucket nameobjectKey- Object name
-
PostSignatureRequest
Constructor- 参数:
expiryDate- Expiration datebucketName- Bucket nameobjectKey- Object name
-
PostSignatureRequest
- 参数:
expires- Expiration time (in seconds)requestDate- Request timebucketName- Bucket nameobjectKey- Object name
-
PostSignatureRequest
- 参数:
expiryDate- Expiration daterequestDate- Request timebucketName- Bucket nameobjectKey- Object name
-
-
方法详细资料
-
getRequestDate
Set the request time.- 返回:
- Request time
-
setRequestDate
Set the request time.- 参数:
requestDate- Request time
-
getExpiryDate
Set the expiration date.- 返回:
- Expiration date
-
setExpiryDate
Obtain the expiration date.- 参数:
expiryDate- Expiration date
-
getExpires
public long getExpires()Obtain the validity period. The default value is 5 minutes (value "300").- 返回:
- Validity period
-
setExpires
public void setExpires(long expires) Set the validity period (in seconds).- 参数:
expires- Validity period
-
getFormParams
Obtain the form parameters of the request.- 返回:
- Form parameters of the request
-
setFormParams
Set the form parameters of the request.- 参数:
formParams- Form parameters of the request
-
getBucketName
Obtain the bucket name.- 返回:
- Bucket name
-
setBucketName
Set the bucket name.- 参数:
bucketName- Bucket name
-
getObjectKey
Obtain the object name.- 返回:
- Object name
-
setObjectKey
Set the object name.- 参数:
objectKey- Object name
-
getConditions
Obtain the restrictions of the form. If the value is set, it will be used to calculate "policy", while the form parameter configuration of the request will be ignored.- 返回:
- Restrictions of the form
-
setConditions
Set the restrictions of the form. If the value is set, it will be used to calculate "policy", while the form parameter configuration of the request will be ignored.- 参数:
conditions- Restrictions of the form
-
toString
-