blob: a184a95744ff940aa9d7b9cc872b37cb5735cc1c [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001package net.floodlightcontroller.virtualnetwork;
2
3import org.restlet.data.Status;
4import org.restlet.resource.Get;
5import org.restlet.resource.Post;
6import org.restlet.resource.Put;
7import org.restlet.resource.ServerResource;
8
9public 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}