users@jersey.java.net

[Jersey] Re: hide wadl

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Mon, 30 Jul 2012 09:52:24 +0200

please don't do that :)

there is a feature which can disable wadl generation:
http://jersey.java.net/nonav/apidocs/1.13/jersey/com/sun/jersey/api/core/ResourceConfig.html#FEATURE_DISABLE_WADL

just add it to your resource config or as a servlet init param and it
should not be generated anymore.

Regards,
Pavel

On 7/30/12 2:45 AM, Grant Yang wrote:
> My 2cents - we used a servlet filter class on the jersey servlet to
> check if the query string contains 'application.wadl'.
>
> Sent from my iPad
>
> On Jul 26, 2012, at 3:52 PM, martin <bsmjt_at_163.com
> <mailto:bsmjt_at_163.com>> wrote:
>
>> Hi,
>>
>> Is there a way in Jersey to prevent the WADL from being generated?
>> i want to hide the application detail .
>> thanks a lot
>>
>>