Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame] | 1 | package net.floodlightcontroller.debugevent.web; |
| 2 | |
| 3 | |
| 4 | import net.floodlightcontroller.debugevent.IDebugEventService; |
| 5 | |
| 6 | import org.restlet.resource.ResourceException; |
| 7 | import org.restlet.resource.ServerResource; |
| 8 | |
| 9 | public class DebugEventResourceBase extends ServerResource{ |
| 10 | protected IDebugEventService debugEvent; |
| 11 | |
| 12 | @Override |
| 13 | protected void doInit() throws ResourceException { |
| 14 | super.doInit(); |
| 15 | debugEvent = (IDebugEventService)getContext().getAttributes(). |
| 16 | get(IDebugEventService.class.getCanonicalName()); |
| 17 | } |
| 18 | } |