public class StatusCodeCacheRule extends AbstractModel
Constructor and Description |
---|
StatusCodeCacheRule() |
StatusCodeCacheRule(StatusCodeCacheRule source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getCacheTime()
Get 状态码缓存过期时间,单位秒
|
String |
getStatusCode()
Get http 状态码
支持 403、404 状态码
|
void |
setCacheTime(Long CacheTime)
Set 状态码缓存过期时间,单位秒
|
void |
setStatusCode(String StatusCode)
Set http 状态码
支持 403、404 状态码
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public StatusCodeCacheRule()
public StatusCodeCacheRule(StatusCodeCacheRule source)
public String getStatusCode()
public void setStatusCode(String StatusCode)
StatusCode
- http 状态码
支持 403、404 状态码public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- 状态码缓存过期时间,单位秒Copyright © 2021. All rights reserved.