Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 private static int getHttpErrorCode(String errorId) {
   return httpStatusCodes.getInteger(errorId, DEFAULT_HTTP_ERROR_CODE);
 }