blob: db7059fbbcc4690ec1858a33a240bc0d3bb5602f [file] [log] [blame]
Pankaj Berdeac1a8c32013-02-26 17:45:57 -08001package net.floodlightcontroller.devicemanager.web;
2
3import java.util.Iterator;
4
5import net.floodlightcontroller.core.INetMapTopologyObjects.IDeviceObject;
6import net.onrc.onos.util.GraphDBConnection;
7
8import org.restlet.resource.Get;
9import org.restlet.resource.ServerResource;
10
11public class TopoDevicesResource extends ServerResource {
12
13 @Get("json")
14 public Iterator<IDeviceObject> retrieve() {
15
16 GraphDBConnection conn = GraphDBConnection.getInstance("");
17
18 return conn.utils().getDevices(conn).iterator();
19
20 }
21
22}