Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.virtualnetwork; |
| 2 | |
| 3 | import org.restlet.data.Status; |
| 4 | import org.restlet.resource.Get; |
| 5 | import org.restlet.resource.Post; |
| 6 | import org.restlet.resource.Put; |
| 7 | import org.restlet.resource.ServerResource; |
| 8 | |
| 9 | public class NoOp extends ServerResource { |
| 10 | /** |
| 11 | * Does nothing and returns 200 OK with a status message |
| 12 | * @return status: ok |
| 13 | */ |
| 14 | @Get |
| 15 | @Put |
| 16 | @Post |
| 17 | public String noOp(String postdata) { |
| 18 | setStatus(Status.SUCCESS_OK); |
| 19 | return "{\"status\":\"ok\"}"; |
| 20 | } |
| 21 | } |