All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.resteasy1141.TestResource Maven / Gradle / Ivy

package org.jboss.resteasy.resteasy1141;

import javax.ws.rs.*;

/**
 * @author Weinan Li
 */
@Path("/test")
public class TestResource {

    private volatile static String formParam;

    @PUT
    @Path("/{pathParam:\\d+}")
    @Consumes("application/x-www-form-urlencoded")
    @Produces({"application/xml", "application/json"})
    public void updateGuestPostStatus(@PathParam("pathParam") Long pathParam,
                                      @FormParam("formParam") String formParam) {

        this.formParam = formParam;
        System.out.println("===============");
        System.out.println(formParam);
        System.out.println("===============");
    }

    @GET
    public String getStatus() {
        return formParam;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy