Esempio n. 1
0
  public static void end(HttpServletRequest req) {
    if (!allowed) return;
    if (req == null) return;

    if (tld.getBoolean()) {
      String c = getCookie(req);

      if (c != null) {
        synchronized (loadtestClients) {
          loadtestClients.put(c, tld.getMap());
        }
      }
    }

    tld.remove();
  }
Esempio n. 2
0
 public static boolean isLoadPerformanceMode() {
   return allowed && tld.getBoolean();
 }