code: static Map<String, Object> makeHttpMap(Properties props)
    {
      Map<String, Object> httpMap = Maps.newHashMap();
  
      final String urlProperty = "com.metamx.emitter.http.url";
  
      final String baseUrl = props.getProperty(urlProperty);
      if (baseUrl == null) {
        throw new IAE("Property[%s] must be set", urlProperty);
      }
  
      httpMap.put("recipientBaseUrl", baseUrl);
      httpMap.put("flushMillis", Long.parseLong(props.getProperty("com.metamx.emitter.flushMillis", "60000")));
      httpMap.put("flushCount", Integer.parseInt(props.getProperty("com.metamx.emitter.flushCount", "300")));
      /**
       * The defaultValue for "com.metamx.emitter.http.flushTimeOut" must be same as {@link HttpEmitterConfig.DEFAULT_FLUSH_TIME_OUT}
       * */
      httpMap.put("flushTimeOut", Long.parseLong(props.getProperty("com.metamx.emitter.http.flushTimeOut", String.valueOf(Long.MAX_VALUE))));
      if (props.containsKey("com.metamx.emitter.http.basicAuthentication")) {
        httpMap.put("basicAuthentication", props.getProperty("com.metamx.emitter.http.basicAuthentication"));
      }
      if (props.containsKey("com.metamx.emitter.http.batchingStrategy")) {
        httpMap.put("batchingStrategy", props.getProperty("com.metamx.emitter.http.batchingStrategy").toUpperCase());
      }
      if (props.containsKey("com.metamx.emitter.http.maxBatchSize")) {
        httpMap.put("maxBatchSize", Integer.parseInt(props.getProperty("com.metamx.emitter.http.maxBatchSize")));
      }
      if (props.containsKey("com.metamx.emitter.http.maxBufferSize")) {
        httpMap.put("maxBufferSize", Long.parseLong(props.getProperty("com.metamx.emitter.http.maxBufferSize")));
      }
      return httpMap;
    }
docs: Package-visible for unit tests