protected PhalApiClient() { this.host = ""; this.parser = new PhalApiClientParserJson(); this.reset(); }
/** * 设置结果解析器,仅当不是JSON返回格式时才需要设置 * @param PhalApiClientParser parser 结果解析器 * @return PhalApiClient */ public PhalApiClient withParser(PhalApiClientParser parser) { this.parser = parser; return(this); }
/** * 设置结果解析器,仅当不是JSON返回格式时才需要设置 * @param PhalApiClientParser parser 结果解析器 * @return PhalApiClient */ public PhalApiClient withParser(PhalApiClientParser parser) { this.parser = parser; return this; }