public class ApiSwitchRuleHandle
extends java.lang.Object
Each rule can specify: - typeCode: the code type to query (e.g. "API_SERVICE_IS_OPEN" for REST, "API_SWITCH" for WS) - closedValue: the codeName value that indicates the interface is closed (e.g. "0" for REST, "1" for WS) - servicePrefix: the URL prefix to strip to extract the service name - checkRespCode: whether to also verify respCode="0000" before checking codeName (WS pattern)
| 构造器和说明 |
|---|
ApiSwitchRuleHandle()
Default constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getClosedValue()
Get closed value.
|
java.lang.String |
getServicePrefix()
Get service prefix.
|
java.lang.String |
getTypeCode()
Get type code.
|
boolean |
isCheckRespCode()
Is check resp code.
|
void |
setCheckRespCode(boolean checkRespCode)
Set check resp code.
|
void |
setClosedValue(java.lang.String closedValue)
Set closed value.
|
void |
setServicePrefix(java.lang.String servicePrefix)
Set service prefix.
|
void |
setTypeCode(java.lang.String typeCode)
Set type code.
|
java.lang.String |
toString() |
public java.lang.String getTypeCode()
public void setTypeCode(java.lang.String typeCode)
typeCode - the type codepublic java.lang.String getClosedValue()
public void setClosedValue(java.lang.String closedValue)
closedValue - the closed valuepublic java.lang.String getServicePrefix()
public void setServicePrefix(java.lang.String servicePrefix)
servicePrefix - the service prefixpublic boolean isCheckRespCode()
public void setCheckRespCode(boolean checkRespCode)
checkRespCode - whether to check resp codepublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2026 The Apache Software Foundation. All rights reserved.