Naoki Shiota | 862cc3b | 2013-12-13 15:42:50 -0800 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.core.web; |
| 2 | |
| 3 | import org.restlet.Context; |
| 4 | import org.restlet.Restlet; |
| 5 | import org.restlet.routing.Router; |
| 6 | |
| 7 | import net.floodlightcontroller.restserver.RestletRoutable; |
| 8 | |
| 9 | public class OnosInternalWebRoutable implements RestletRoutable { |
| 10 | @Override |
| 11 | public String basePath() { |
| 12 | return "/wm/onos/internal"; |
| 13 | } |
| 14 | |
| 15 | @Override |
| 16 | public Restlet getRestlet(Context context) { |
| 17 | Router router = new Router(context); |
| 18 | // Following added by ONOS |
| 19 | router.attach("/clearflowtable/json", ClearFlowTableResource.class); |
| 20 | return router; |
| 21 | } |
| 22 | } |