return status code 204 on update

This commit is contained in:
Sebastian Sdorra
2011-02-16 20:12:33 +01:00
parent 5dd238276a
commit 9ff6999a0b

View File

@@ -206,12 +206,14 @@ public abstract class AbstractManagerResource<T extends ModelObject,
* @param name
* @param item
*
*
* @return
*/
@PUT
@Path("{id}")
@Consumes({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
public void update(@Context UriInfo uriInfo, @PathParam("id") String name,
T item)
public Response update(@Context UriInfo uriInfo,
@PathParam("id") String name, T item)
{
preUpate(item);
@@ -223,6 +225,8 @@ public abstract class AbstractManagerResource<T extends ModelObject,
{
throw new WebApplicationException(ex);
}
return Response.noContent().build();
}
//~--- get methods ----------------------------------------------------------