Here\'s my code to limit the number of request for minute:
MethodAuthorizer ma = createMethodAuthorizer();
ma.setNext(router);
FirewallR
you can also rely on the ApisparkService (I've tested it using the release v2.3.2) of the framework:
public TestApplication() {
super();
ApiSparkService as = new ApiSparkService();
as.setFirewallEnabled(true);
as.getFirewallConfig().addIpAddressesPeriodicCounter(60, TimeUnit.SECONDS, 10);
getServices().add(as);
}