blob: 48e469bc689b9c3cf44c2dcdd0c80caa428796b2 [file] [log] [blame]
Brian O'Connorc67f9fa2014-08-07 18:17:46 -07001package net.floodlightcontroller.debugcounter.web;
2
3import net.floodlightcontroller.debugcounter.IDebugCounterService;
4
5import org.restlet.resource.ResourceException;
6import org.restlet.resource.ServerResource;
7
8public class DebugCounterResourceBase extends ServerResource {
9
10 protected IDebugCounterService debugCounter;
11
12 @Override
13 protected void doInit() throws ResourceException {
14 super.doInit();
15 debugCounter = (IDebugCounterService)getContext().getAttributes().
16 get(IDebugCounterService.class.getCanonicalName());
17 }
18}