コード例 #1
0
ファイル: ServerHttpClient.java プロジェクト: ricesorry/sonar
 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));
 }
コード例 #2
0
 private static int getHttpErrorCode(String errorId) {
   return httpStatusCodes.getInteger(errorId, DEFAULT_HTTP_ERROR_CODE);
 }