public class ClientIPHeaderParameters extends AbstractModel
header, skipSign
Constructor and Description |
---|
ClientIPHeaderParameters() |
ClientIPHeaderParameters(ClientIPHeaderParameters 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 |
---|---|
String |
getHeaderName()
Get 回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。
|
String |
getSwitch()
Get 配置开关,取值有:
on:开启;
off:关闭。
|
void |
setHeaderName(String HeaderName)
Set 回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。
|
void |
setSwitch(String Switch)
Set 配置开关,取值有:
on:开启;
off:关闭。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ClientIPHeaderParameters()
public ClientIPHeaderParameters(ClientIPHeaderParameters source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 配置开关,取值有:
public String getHeaderName()
public void setHeaderName(String HeaderName)
HeaderName
- 回源时,存放客户端 IP 的请求头名称。当 Switch 为 on 时,该参数必填。该参数不允许填写 X-Forwarded-For。Copyright © 2025. All rights reserved.