blob: 76c30cb6d4c51af1c16ca4051a4fa09355d3b429 [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.learningswitch;
2
3import org.restlet.Context;
4import org.restlet.Restlet;
5import org.restlet.routing.Router;
6
7import net.floodlightcontroller.restserver.RestletRoutable;
8
9public class LearningSwitchWebRoutable implements RestletRoutable {
10
11 @Override
12 public Restlet getRestlet(Context context) {
13 Router router = new Router(context);
14 router.attach("/table/{switch}/json", LearningSwitchTable.class);
15 return router;
16 }
17
18 @Override
19 public String basePath() {
20 return "/wm/learningswitch";
21 }
22}