users@wadl.java.net

Forcing specific return codes with <response status="XYZ">?

From: Paul Duffy <paduffy_at_cisco.com>
Date: Wed, 11 Jan 2012 15:17:19 -0800

Folks,

I'm doing an evaluation before recommending wider adoption of wadl.
Appreciate your patience and efforts.

First question. I seem unable to impact generated code with the status
attribute on the <response/> element.

Sample WADL ...

<resource path="test">
<method name="DELETE">
<response status = "405"/>
</method>
</resource

I seem unable to generate any but the following code...

/**
  * Created by Apache CXF WadlToJava code generator
**/
package application;

import javax.ws.rs.DELETE;
import javax.ws.rs.Path;

@Path("test")
public class Test {
     @DELETE
     public void DELETETest() {
         //TODO: implement
     }
}

How does one force code generation for specific return status from the wadl?

Cheers