public class Action extends AbstractModel
Constructor and Description |
---|
Action() |
Action(Action 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 |
---|---|
CodeAction |
getCodeAction()
Get 带有状态码的功能操作,选择该类型的功能项有:
自定义错误页面(ErrorPage);
状态码缓存 TTL(StatusCodeCache)。
注意:此字段可能返回 null,表示取不到有效值。
|
NormalAction |
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;
SslTlsSecureConf;
OcspStapling;
HTTP/2 访问(Http2);
回源跟随重定向(UpstreamFollowRedirect);
修改源站(Origin)。
注意:此字段可能返回 null,表示取不到有效值。
|
RewriteAction |
getRewriteAction()
Get 带有请求头/响应头的功能操作,选择该类型的功能项有:
修改 HTTP 请求头(RequestHeader);
修改HTTP响应头(ResponseHeader)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCodeAction(CodeAction CodeAction)
Set 带有状态码的功能操作,选择该类型的功能项有:
自定义错误页面(ErrorPage);
状态码缓存 TTL(StatusCodeCache)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setNormalAction(NormalAction 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;
SslTlsSecureConf;
OcspStapling;
HTTP/2 访问(Http2);
回源跟随重定向(UpstreamFollowRedirect);
修改源站(Origin)。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setRewriteAction(RewriteAction 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 Action()
public Action(Action source)
public NormalAction getNormalAction()
public void setNormalAction(NormalAction NormalAction)
NormalAction
- 常规功能操作,选择该类型的功能项有:
public RewriteAction getRewriteAction()
public void setRewriteAction(RewriteAction RewriteAction)
RewriteAction
- 带有请求头/响应头的功能操作,选择该类型的功能项有:
public CodeAction getCodeAction()
public void setCodeAction(CodeAction CodeAction)
CodeAction
- 带有状态码的功能操作,选择该类型的功能项有:
Copyright © 2023. All rights reserved.