ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username);
return UserInfoResult.fromResponse(response, UserInfoResult.class);
}
public ResponseWrapper updatePassword( String username, String password )
throws APIConnectionException, APIRequestException
<BUG>{
Preconditions.checkArgument( !StringUtils.isTrimedEmpty(username), "username should not be empty");
Preconditions.checkArgument( !StringUtils.isTrimedEmpty(password), "password should not be empty");
Preconditions.checkArgument(!StringUtils.isLineBroken(username), "username must not contain line feed character. ");
Preconditions.checkArgument( password.getBytes().length >= 4 && password.getBytes().length <=128,
"The length of password must between 4 and 128 bytes. Input is " + password);</BUG>
JsonObject jsonObj = new JsonObject();

ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username);
return UserInfoResult.fromResponse(response, UserInfoResult.class);
}
public ResponseWrapper updatePassword( String username, String password )
throws APIConnectionException, APIRequestException
{
Preconditions.checkArgument(StringUtils.isUsernameValid(username), "The username is illegal, please check again");
Preconditions.checkArgument(StringUtils.isPasswordValid(password), "The password is illegal, please check again");
JsonObject jsonObj = new JsonObject();
