public class PolicyConditions
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
PolicyConditions.MatchMode
The match mode for post policy conditions
|
限定符和类型 | 字段和说明 |
---|---|
private java.util.List<ConditionItem> |
_conds |
private static java.util.Map<java.lang.String,java.util.List<PolicyConditions.MatchMode>> |
_supportedMatchRules |
static java.lang.String |
COND_ACL |
static java.lang.String |
COND_BUCKET |
static java.lang.String |
COND_CACHE_CONTROL |
static java.lang.String |
COND_CONTENT_DISPOSITION |
static java.lang.String |
COND_CONTENT_ENCODING |
static java.lang.String |
COND_CONTENT_LENGTH_RANGE |
static java.lang.String |
COND_CONTENT_TYPE |
static java.lang.String |
COND_EXPIRES |
static java.lang.String |
COND_KEY |
static java.lang.String |
COND_SUCCESS_ACTION_REDIRECT |
static java.lang.String |
COND_SUCCESS_ACTION_STATUS |
static java.lang.String |
COND_X_OSS_ALGORITHM |
static java.lang.String |
COND_X_OSS_CREDENTIAL |
static java.lang.String |
COND_X_OSS_DATE |
static java.lang.String |
COND_X_OSS_META_PREFIX |
static java.lang.String |
COND_X_OSS_SERVER_SIDE_PREFIX |
构造器和说明 |
---|
PolicyConditions() |
限定符和类型 | 方法和说明 |
---|---|
void |
addConditionItem(PolicyConditions.MatchMode matchMode,
java.lang.String name,
java.lang.String value)
Adds a condition item with specified
PolicyConditions.MatchMode value. |
void |
addConditionItem(PolicyConditions.MatchMode matchMode,
java.lang.String name,
java.lang.String[] contain)
Adds a condition item with specified
PolicyConditions.MatchMode value. |
void |
addConditionItem(java.lang.String name,
long min,
long max)
Adds a range match condition.
|
void |
addConditionItem(java.lang.String name,
java.lang.String value)
Adds a condition item with the exact match mode.
|
private void |
checkMatchModes(PolicyConditions.MatchMode matchMode,
java.lang.String condName) |
java.lang.String |
jsonize() |
public static final java.lang.String COND_CONTENT_LENGTH_RANGE
public static final java.lang.String COND_CACHE_CONTROL
public static final java.lang.String COND_CONTENT_TYPE
public static final java.lang.String COND_CONTENT_DISPOSITION
public static final java.lang.String COND_CONTENT_ENCODING
public static final java.lang.String COND_EXPIRES
public static final java.lang.String COND_KEY
public static final java.lang.String COND_ACL
public static final java.lang.String COND_BUCKET
public static final java.lang.String COND_SUCCESS_ACTION_REDIRECT
public static final java.lang.String COND_SUCCESS_ACTION_STATUS
public static final java.lang.String COND_X_OSS_META_PREFIX
public static final java.lang.String COND_X_OSS_DATE
public static final java.lang.String COND_X_OSS_ALGORITHM
public static final java.lang.String COND_X_OSS_CREDENTIAL
public static final java.lang.String COND_X_OSS_SERVER_SIDE_PREFIX
private static java.util.Map<java.lang.String,java.util.List<PolicyConditions.MatchMode>> _supportedMatchRules
private java.util.List<ConditionItem> _conds
public void addConditionItem(java.lang.String name, java.lang.String value)
name
- Condition name.value
- Condition value.public void addConditionItem(PolicyConditions.MatchMode matchMode, java.lang.String name, java.lang.String value)
PolicyConditions.MatchMode
value.matchMode
- Conditions match mode.name
- Condition name.value
- Condition value.public void addConditionItem(java.lang.String name, long min, long max)
name
- Condition namemin
- Min value.max
- Max value.public void addConditionItem(PolicyConditions.MatchMode matchMode, java.lang.String name, java.lang.String[] contain)
PolicyConditions.MatchMode
value.matchMode
- Conditions match mode.name
- Condition name.contain
- Condition contain.private void checkMatchModes(PolicyConditions.MatchMode matchMode, java.lang.String condName)
public java.lang.String jsonize()