public class UrlRedirectRule extends AbstractModel
| Constructor and Description |
|---|
UrlRedirectRule() |
UrlRedirectRule(UrlRedirectRule 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 |
|---|---|
Boolean |
getFullMatch()
Get 指定是全路径配置还是任意匹配
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getPattern()
Get 待匹配的Url,仅支持Url路径,不支持参数。默认完全匹配,支持通配符 *,最多支持5个通配符,最大长度1024字符。
|
String |
getRedirectHost()
Get 目标host,必须以http://或https://开头,并填写标准格式域名,如果不填写,默认为http:// + 当前域名
注意:此字段可能返回 null,表示取不到有效值。
|
Long |
getRedirectStatusCode()
Get 重定向状态码,301 | 302
|
String |
getRedirectUrl()
Get 目标URL,必须以“/”开头,不包含参数部分。最大长度1024字符。可使用$1, $2, $3, $4, $5分别捕获匹配路径中的通配符号,最多支持10个捕获值。
|
void |
setFullMatch(Boolean FullMatch)
Set 指定是全路径配置还是任意匹配
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setPattern(String Pattern)
Set 待匹配的Url,仅支持Url路径,不支持参数。默认完全匹配,支持通配符 *,最多支持5个通配符,最大长度1024字符。
|
void |
setRedirectHost(String RedirectHost)
Set 目标host,必须以http://或https://开头,并填写标准格式域名,如果不填写,默认为http:// + 当前域名
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRedirectStatusCode(Long RedirectStatusCode)
Set 重定向状态码,301 | 302
|
void |
setRedirectUrl(String RedirectUrl)
Set 目标URL,必须以“/”开头,不包含参数部分。最大长度1024字符。可使用$1, $2, $3, $4, $5分别捕获匹配路径中的通配符号,最多支持10个捕获值。
|
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, toJsonStringpublic UrlRedirectRule()
public UrlRedirectRule(UrlRedirectRule source)
public Long getRedirectStatusCode()
public void setRedirectStatusCode(Long RedirectStatusCode)
RedirectStatusCode - 重定向状态码,301 | 302public String getPattern()
public void setPattern(String Pattern)
Pattern - 待匹配的Url,仅支持Url路径,不支持参数。默认完全匹配,支持通配符 *,最多支持5个通配符,最大长度1024字符。public String getRedirectUrl()
public void setRedirectUrl(String RedirectUrl)
RedirectUrl - 目标URL,必须以“/”开头,不包含参数部分。最大长度1024字符。可使用$1, $2, $3, $4, $5分别捕获匹配路径中的通配符号,最多支持10个捕获值。public String getRedirectHost()
public void setRedirectHost(String RedirectHost)
RedirectHost - 目标host,必须以http://或https://开头,并填写标准格式域名,如果不填写,默认为http:// + 当前域名
注意:此字段可能返回 null,表示取不到有效值。public Boolean getFullMatch()
public void setFullMatch(Boolean FullMatch)
FullMatch - 指定是全路径配置还是任意匹配
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2021. All rights reserved.