users@jersey.java.net
extension custom negotiation
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
Next in thread
] [
Replies
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: James Lorenzen <
jameslorenzen_at_gmail.com
>
Date
: Sat, 13 Jun 2009 17:45:49 -0500
How do you handle extension custom negotiation like foo.xml or foo.json
automatically in jersey?
I can't find any documentation on it. The only thing I have found is this
thread,
https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=2718
,
that references this issue,
https://jersey.dev.java.net/issues/show_bug.cgi?id=108
.
My guess is the client calls foo.json.
The REST method has two @Produces mime types for xml and json.
@Produces({"application/xml", "application/json"}
But how does the method know which one was requested by the client?
This message
: [
Message body
]
Next message
:
Richard Wallace: "Jersey as pure OSGi bundles"
Previous message
:
Richard Wallace: "Re: [Jersey] Jersey & OSGi <was> Re: [Jersey] Jersey 1.0.3 released"
Next in thread
:
Daniel Larsson: "Re: [Jersey] extension custom negotiation"
Reply
:
Daniel Larsson: "Re: [Jersey] extension custom negotiation"
Reply
:
Paul Sandoz: "Re: [Jersey] extension custom negotiation"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]