in src/main/java/com/aliyun/openservices/log/request/ListTopostoreNodeRequest.java [143:184]
public Map<String, String> GetAllParams() {
if (offset != null) {
SetParam(Consts.CONST_OFFSET, offset.toString());
}
if (size != null) {
SetParam(Consts.CONST_SIZE, size.toString());
}
if(nodeIds != null && !nodeIds.isEmpty()){
SetParam(Consts.TOPOSTORE_NODE_ID_LIST, Utils.join(",", Utils.removeNullItems(nodeIds)));
}
if(nodeTypes != null && !nodeTypes.isEmpty()){
SetParam(Consts.TOPOSTORE_NODE_TYPE_LIST, Utils.join(",", Utils.removeNullItems(nodeTypes)));
}
if(propertyKey!=null && propertyKey.length()>0){
SetParam(Consts.TOPOSTORE_NODE_PROPERTY_KEY, propertyKey);
}
if(propertyValue!= null && propertyValue.length()>0){
SetParam(Consts.TOPOSTORE_NODE_PROPERTY_VALUE, propertyValue);
}
if(properties!=null && !properties.isEmpty()){
JSONObject proObj = new JSONObject();
for(Map.Entry<String, String> kv : properties.entrySet()){
proObj.put(kv.getKey(), kv.getValue());
}
try{
SetParam(Consts.TOPOSTORE_NODE_PROPERTIES, URLEncoder.encode(new String(
Base64.getEncoder().encodeToString(proObj.toJSONString().getBytes())), "utf-8"));
} catch(UnsupportedEncodingException e){
throw new RuntimeException(e);
}
}
return super.GetAllParams();
}