/** * Eine neue Lokalitaet abspeichern. * * @param person Das Person-Objekt * @param uriInfo Info-Objekt zur aufgerufenen URI * @param headers * @return * @return * @throws URISyntaxException */ @POST @XmlElement(type = Location.class) @Consumes({MediaType.APPLICATION_XML, MediaType.TEXT_XML, MediaType.APPLICATION_JSON}) @Produces public Response createLocation( Location location, @Context UriInfo uriInfo, @Context HttpHeaders headers) { dao.create(location.getBeschreibung()); return Response.created(uriInfo.getAbsolutePath()).build(); }