| Author |
@ConsumeMime
|
Smari Oumaya
Greenhorn
Joined: Sep 29, 2010
Posts: 22
|
|
Hi,
I always find this notation in tutorials concerning web services REST :"@ConsumeMime("application/(employee)+xml") ". Can someone explain me how to use it.
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
It was not entirely easy, but I finally found the API documentation:
https://jersey.dev.java.net/nonav/apidocs/latest/jersey/javax/ws/rs/Consumes.html
By the way, I think the annotation has been renamed to @Consumes in the latest version of Jersey (the JAX-RS reference implementation). Correct me if I am wrong.
Best wishes!
|
My free books and tutorials: http://www.slideshare.net/krizsan
|
 |
Smari Oumaya
Greenhorn
Joined: Sep 29, 2010
Posts: 22
|
|
Thanks, but i'm wondering about "employee", how can i define my classes to use them in the consumes annotation. I hope that my question is more clear now.
|
 |
Smari Oumaya
Greenhorn
Joined: Sep 29, 2010
Posts: 22
|
|
please, i really need help!
i can't find how to define my classes in the clause of @consumes.
|
 |
 |
|
|
subject: @ConsumeMime
|
|
|