public class RuleAction extends AbstractModel
Constructor and Description |
---|
RuleAction() |
RuleAction(RuleAction 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 |
---|---|
RuleCodeAction |
getCodeAction()
Get 带有状态码的功能操作,选择该类型的功能项有:
自定义错误页面(ErrorPage);
状态码缓存 TTL(StatusCodeCache)。
注意:此字段可能返回 null,表示取不到有效值。
|
RuleNormalAction |
getNormalAction()
Get 常规功能操作,选择该类型的功能项有:
访问URL 重写(AccessUrlRedirect);
回源 URL 重写 (UpstreamUrlRedirect);
QUIC(QUIC);
WebSocket (WebSocket);
视频拖拽(VideoSeek);
Token 鉴权(Authentication);
自定义CacheKey(CacheKey);
节点缓存 TTL (Cache);
浏览器缓存 TTL(MaxAge);
离线缓存(OfflineCache);
智能加速(SmartRouting);
分片回源(RangeOriginPull);
HTTP/2 回源(UpstreamHttp2);
Host Header 重写(HostHeader);
强制 HTTPS(ForceRedirect);
回源 HTTPS(OriginPullProtocol);
缓存预刷新(CachePrefresh);
智能压缩(Compression);
Hsts;
ClientIpHeader;
TlsVersion;
OcspStapling。
HTTP/2 访问(Http2)。
注意:此字段可能返回 null,表示取不到有效值。
|
RuleRewriteAction |
getRewriteAction()
Get 带有请求头/响应头的功能操作,选择该类型的功能项有:
修改 HTTP 请求头(RequestHeader);
修改HTTP响应头(ResponseHeader)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCodeAction(RuleCodeAction CodeAction)
Set 带有状态码的功能操作,选择该类型的功能项有:
自定义错误页面(ErrorPage);
状态码缓存 TTL(StatusCodeCache)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setNormalAction(RuleNormalAction NormalAction)
Set 常规功能操作,选择该类型的功能项有:
访问URL 重写(AccessUrlRedirect);
回源 URL 重写 (UpstreamUrlRedirect);
QUIC(QUIC);
WebSocket (WebSocket);
视频拖拽(VideoSeek);
Token 鉴权(Authentication);
自定义CacheKey(CacheKey);
节点缓存 TTL (Cache);
浏览器缓存 TTL(MaxAge);
离线缓存(OfflineCache);
智能加速(SmartRouting);
分片回源(RangeOriginPull);
HTTP/2 回源(UpstreamHttp2);
Host Header 重写(HostHeader);
强制 HTTPS(ForceRedirect);
回源 HTTPS(OriginPullProtocol);
缓存预刷新(CachePrefresh);
智能压缩(Compression);
Hsts;
ClientIpHeader;
TlsVersion;
OcspStapling。
HTTP/2 访问(Http2)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRewriteAction(RuleRewriteAction RewriteAction)
Set 带有请求头/响应头的功能操作,选择该类型的功能项有:
修改 HTTP 请求头(RequestHeader);
修改HTTP响应头(ResponseHeader)。
注意:此字段可能返回 null,表示取不到有效值。
|
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 RuleAction()
public RuleAction(RuleAction source)
public RuleNormalAction getNormalAction()
public void setNormalAction(RuleNormalAction NormalAction)
NormalAction
- 常规功能操作,选择该类型的功能项有:
public RuleRewriteAction getRewriteAction()
public void setRewriteAction(RuleRewriteAction RewriteAction)
RewriteAction
- 带有请求头/响应头的功能操作,选择该类型的功能项有:
public RuleCodeAction getCodeAction()
public void setCodeAction(RuleCodeAction CodeAction)
CodeAction
- 带有状态码的功能操作,选择该类型的功能项有:
Copyright © 2022. All rights reserved.