Package com.ghosthack.turismo.action

Examples of com.ghosthack.turismo.action.Action


        put("/indexes/:name/docs", new Docs());

        delete("/indexes/:name/docs", new DeleteDocs());
       
        get("/indexes", new Action() {
            public void run() {
                // dummy response for embedded server
                print("{\"idx\": {\"status\": \"LIVE\", \"code\": \"dbajo\", " +
                        "\"started\": true, \"public_search\": true, " +
                        "\"creation_time\": \"2011-04-22T05:37:43\", \"size\": 0}}");
            }
        });

        get("/indexes/:name", new Action() {
            public void run() {
                // dummy response for embedded server
                print("{\"status\": \"LIVE\", \"code\": \"dbajo\", " +
                        "\"started\": true, \"public_search\": true, " +
                        "\"creation_time\": \"2011-04-22T05:37:43\", \"size\": 0}");
            }
        });

        put("/indexes/:name", new Action() {
            public void run() {
                // dummy
                res().setStatus(204);
            }
        });

        delete("/indexes/:name", new Action() {
            public void run() {
                // dummy
                res().setStatus(204);
            }
        });
View Full Code Here

TOP

Related Classes of com.ghosthack.turismo.action.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.