blob: 3a9beab7b3e8814524e6e98f6d4b63078fc7e478 [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.firewall;
2
3import net.floodlightcontroller.restserver.RestletRoutable;
4import org.restlet.Context;
5import org.restlet.routing.Router;
6
7public class FirewallWebRoutable implements RestletRoutable {
8 /**
9 * Create the Restlet router and bind to the proper resources.
10 */
11 @Override
12 public Router getRestlet(Context context) {
13 Router router = new Router(context);
14 router.attach("/module/{op}/json", FirewallResource.class);
15 router.attach("/rules/json", FirewallRulesResource.class);
16 return router;
17 }
18
19 /**
20 * Set the base path for the Firewall
21 */
22 @Override
23 public String basePath() {
24 return "/wm/firewall";
25 }
26}