com.ge.snowizard.service.resources.PingResource Maven / Gradle / Ivy
package com.ge.snowizard.service.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import com.yammer.dropwizard.jersey.caching.CacheControl;
@Path("/ping")
public class PingResource {
@GET
@Produces(MediaType.TEXT_PLAIN)
@CacheControl(mustRevalidate = true, noCache = true, noStore = true)
public Response ping() {
return Response.ok("pong").type(MediaType.TEXT_PLAIN).build();
}
}