类 RemoteServerUtil
java.lang.Object
com.alibaba.nacos.plugin.auth.impl.utils.RemoteServerUtil
Nacos auth plugin remote nacos server util.
- 作者:
- xiweng.yy
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static HeaderbuildServerRemoteHeader(AuthConfigs authConfigs) According inputAuthConfigsto build remote server identity header.static Stringstatic Stringprivate static voidstatic voidRead nacos server address from cluster.conf.private static voidstatic voidsingleCheckResult(HttpRestResult<String> result) Single check http result, if not success, wrapper result as Nacos exception.
-
字段详细资料
-
serverAddresses
-
index
-
remoteServerContextPath
-
-
构造器详细资料
-
RemoteServerUtil
public RemoteServerUtil()
-
-
方法详细资料
-
initRemoteServerContextPath
private static void initRemoteServerContextPath() -
registerWatcher
private static void registerWatcher() -
readRemoteServerAddress
public static void readRemoteServerAddress()Read nacos server address from cluster.conf. -
getServerAddresses
-
getOneNacosServerAddress
-
getRemoteServerContextPath
-
singleCheckResult
public static void singleCheckResult(HttpRestResult<String> result) throws com.alibaba.nacos.api.exception.NacosException Single check http result, if not success, wrapper result as Nacos exception.- 参数:
result- http execute result- 抛出:
com.alibaba.nacos.api.exception.NacosException- wrapper result as NacosException
-
buildServerRemoteHeader
According inputAuthConfigsto build remote server identity header.- 参数:
authConfigs- authConfigs- 返回:
- remote server identity header
-