Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.core.web; |
| 2 | |
| 3 | import java.util.Map; |
| 4 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 5 | import net.floodlightcontroller.core.module.ModuleLoaderResource; |
| 6 | |
Jonathan Hart | a99ec67 | 2014-04-03 11:30:34 -0700 | [diff] [blame] | 7 | import org.restlet.resource.Get; |
| 8 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 9 | public class LoadedModuleLoaderResource extends ModuleLoaderResource { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 10 | /** |
| 11 | * Retrieves information about all modules available |
| 12 | * to Floodlight. |
| 13 | * |
| 14 | * @return Information about all modules available. |
| 15 | */ |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 16 | @Get("json") |
| 17 | public Map<String, Object> retrieve() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 18 | return retrieveInternal(true); |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 19 | } |
| 20 | } |