/*******************************************************************************
 * Copyright (c) 2014 Jens Reimann.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Jens Reimann - initial API and implementation
 *******************************************************************************/
package mx.nhtzr.osgiee.web;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Controller
public class WelcomeController {

    private static final Log logger = LogFactory.getLog(WelcomeController.class);

    @GET
    @Path("/")
    public String main() {
        return "Holi";
    }
}

@@ -641,95 +641,344 @@
 org.
-springframework.stereotype.Controller;%0A%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.Path
+codehaus.jackson.map.ObjectMapper;%0Aimport org.codehaus.jackson.map.ObjectWriter;%0Aimport org.springframework.stereotype.Controller;%0A%0Aimport javax.ws.rs.Consumes;%0Aimport javax.ws.rs.GET;%0Aimport javax.ws.rs.POST;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.MultivaluedMap;%0Aimport java.io.IOException
 ;%0A%0A@
@@ -988,16 +988,27 @@
 troller%0A
+@Path(%22/%22)%0A
 public c
@@ -1118,33 +1118,384 @@
 ss);
+%0A    private ObjectWriter writer = new ObjectMapper().writerWithDefaultPrettyPrinter();
 %0A%0A    @
-GE
+POS
 T%0A    @
-Path(%22/%22)
+Consumes(value = MediaType.APPLICATION_FORM_URLENCODED)%0A    public String postHandler(MultivaluedMap%3CString, String%3E params ) throws IOException %7B%0A        logger.info(%22params = %22 + writer.writeValueAsString(params));%0A        return params.getFirst(%22body%22);%0A    %7D%0A%0A    @GET
 %0A   

Add post example