users@jersey.java.net

Re: [Jersey] Disabling WADL

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 19 Jan 2010 10:44:15 +0000

On Jan 18, 2010, at 2:20 PM, Kumar Mettu wrote:

> Hi,
>
> WADL is a nice way to provide description of RestFul services
> using Jersey without having to do anything. But there are cases
> where we would not want to provide the description for several
> reasons. Is there a way to disable WADL in jersey?
>

See:

https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/core/ResourceConfig.html
#FEATURE_DISABLE_WADL
https://jersey.dev.java.net/nonav/apidocs/latest/jersey/constant-values.html
#com.sun.jersey.api.core.ResourceConfig.FEATURE_DISABLE_WADL

You can set it as a servlet init param:
      <init-param>
          <param-name>com.sun.jersey.config.feature.DisableWADL</param-
name>
          <param-value>true</param-value>
      </init-param>
Paul.