How to create WADL programmatically in Jersey

293 views Asked by At

I am developing a jersey application using Jersey 2.27. I am able to generate a WADL using the out of box feature of Jersey. But I want to control the WADL generation myself via custom code.

1

There are 1 answers

3
Ori Marko On

WADL generation supported by Jersey 2, but it's not recommended

extended WADL in Jersey 2.x is NOT the intended final version and API is going to be change

Here's a tutorial

First I extended the WadlGeneratorConfig class in which I defined the following properties applicationDocsStream, grammarsStream, resourceDocStream. These vars point to the xml files which will be used in the WADL generation.