Floodlight REST module

1 download jackson, restlet lib

2 create AntiDDoSResource extending ServerResource

3 create a ADSWebRoutable class implementing RestletRoutable

public class ADSWebRoutable implements RestletRoutable {
public Router getRestlet(Context context) {
Router router = new Router(context);
router.attach("/{op}/json", AntiDDoSResource.class);
router.attach("/{op}/{obj}/json", AntiDDoSResource.class);
return router;

* Set the base path for the Firewall
public String basePath() {
return "/app/ads";

3 bind the ADSWebRoutable with

Leave a Comment

Your email address will not be published. Required fields are marked *