public ServerHttpClient(Configuration configuration) { this( configuration.getString("sonar.host.url", "http://localhost:9000"), configuration.getInteger("sonar.host.connectTimeoutMs", CONNECT_TIMEOUT_MILLISECONDS), configuration.getInteger("sonar.host.readTimeoutMs", READ_TIMEOUT_MILLISECONDS)); }
private static int getHttpErrorCode(String errorId) { return httpStatusCodes.getInteger(errorId, DEFAULT_HTTP_ERROR_CODE); }