2010-09-30 7 views

Trả lời

24

Bạn có thể thêm thông số UriInfo vào hoạt động của mình. Từ đó, bạn có thể truy cập URL:

@POST 
@Consumes({"application/xml", "application/json"}) 
public Response create(@Context UriInfo uriInfo, Customer customer) { 
    ... 
}