类 QueryServiceResponse
- java.lang.Object
-
- com.alibaba.nacos.api.remote.response.Response
-
- com.alibaba.nacos.api.naming.remote.response.QueryServiceResponse
-
-
字段概要
字段 修饰符和类型 字段 说明 private ServiceInfoserviceInfo
-
构造器概要
构造器 限定符 构造器 说明 QueryServiceResponse()privateQueryServiceResponse(ServiceInfo serviceInfo)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static QueryServiceResponsebuildFailResponse(java.lang.String message)Build fail response.static QueryServiceResponsebuildSuccessResponse(ServiceInfo serviceInfo)Build Success response.ServiceInfogetServiceInfo()voidsetServiceInfo(ServiceInfo serviceInfo)-
从类继承的方法 com.alibaba.nacos.api.remote.response.Response
getErrorCode, getMessage, getRequestId, getResultCode, isSuccess, setErrorCode, setErrorInfo, setMessage, setRequestId, setResultCode, toString
-
-
-
-
字段详细资料
-
serviceInfo
private ServiceInfo serviceInfo
-
-
构造器详细资料
-
QueryServiceResponse
public QueryServiceResponse()
-
QueryServiceResponse
private QueryServiceResponse(ServiceInfo serviceInfo)
-
-
方法详细资料
-
buildSuccessResponse
public static QueryServiceResponse buildSuccessResponse(ServiceInfo serviceInfo)
Build Success response.- 参数:
serviceInfo- service info- 返回:
- service query response
-
buildFailResponse
public static QueryServiceResponse buildFailResponse(java.lang.String message)
Build fail response.- 参数:
message- message- 返回:
- service query response
-
getServiceInfo
public ServiceInfo getServiceInfo()
-
setServiceInfo
public void setServiceInfo(ServiceInfo serviceInfo)
-
-