Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

does jersey 2.x Client API support DELETE with a body ? #3798

Open
sosoeo opened this issue Apr 2, 2018 · 1 comment
Open

does jersey 2.x Client API support DELETE with a body ? #3798

sosoeo opened this issue Apr 2, 2018 · 1 comment

Comments

@sosoeo
Copy link

sosoeo commented Apr 2, 2018

I'am working on a project using Client API,the webservice API provided by other company use a DELETE request with body.

what can I do with it?
by this?: method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE));

@sosoeo sosoeo changed the title jersey 2.x Client API do not support DELETE with Entity.entity.. body, why? does jersey 2.x Client API support DELETE with a body ? Apr 2, 2018
@sosoeo
Copy link
Author

sosoeo commented Apr 3, 2018

method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE));
this will cause a error:
ijava.lang.IllegalStateException: Entity must be null for http method DELETE.
what should I do? ,while, RESTeasy have no such limitation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant