That is very easy. Simply configure your methods with @GET and @Produces
annotations. Any method like PUT, DELETE, or POST will automatically return
a 405 - Method Not Allowed response.
____________________________
John Yeary
____________________________
<
http://javaevangelist.blogspot.com/> <
https://twitter.com/jyeary>
<
http://www.youtube.com/johnyeary>
<
http://www.linkedin.com/in/jyeary>
<
https://plus.google.com/112146428878473069965>
<
http://www.facebook.com/jyeary>
<
http://feeds.feedburner.com/JavaEvangelistJohnYearysBlog>
<
http://netbeans.org/people/84414-jyeary>
____________________________
"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt
On Thu, Jan 26, 2012 at 9:02 AM, Pengfei Di <pengfei.di_at_match2blue.com>wrote:
> Hello,
>
> Is there any way to configure jersey to a read-only mode? That means only
> GET requests are allowed, and all POST/PUT/DELETE requests will be rejected.
> Thanks for any hints.
>
> Pengfei
>
>