package org.jboss.resteasy.test.client.resource;

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

import org.jboss.resteasy.annotations.cache.Cache;

@Path("/cache")
public interface ClientCacheProxy {
    @GET
    @Produces("text/plain")
    String get();

    @Path("/etag/always/good")
    @GET
    @Produces("text/plain")
    String getAlwaysGoodEtag();

    @Path("/etag/never/good")
    @GET
    @Produces("text/plain")
    String getNeverGoodEtag();

    @Path("/etag/always/validate")
    @GET
    @Produces("text/plain")
    String getValidateEtagged();

    @Path("/cacheit/{id}")
    @GET
    @Produces("text/plain")
    @Cache(maxAge = 3000)
    String getCacheit(@PathParam("id") String id);
}
