public class StoreResourceBean implements StoreResource
{
public Response head(UriInfo uriInfo)
{
UriBuilder absolute = uriInfo.getBaseUriBuilder();
String customerUrl = absolute.clone().path("customers").build().toString();
String orderUrl = absolute.clone().path("orders").build().toString();
String productUrl = absolute.clone().path("products").build().toString();
Response.ResponseBuilder builder = Response.ok();
builder.header("Link", new Link("customers", customerUrl, "application/xml"));