Example for DataHandler not supported in WADL:

@Consumes({ MediaType.MULTIPART_FORM_DATA })
     @Produces({ MediaType.APPLICATION_JSON })
     @POST
     @Path("/helloMultipart")
     public void helloMultipart(@Multipart(value= "payload" ,
type=MediaType.APPLICATION_OCTET_STREAM) DataHandler handler) {

     }
is currently rendered in WADL (WRONG):
<resource path="/helloMultipart"><method
name="POST"><request><representation
mediaType="application/x-www-form-urlencoded"/></request>

This would be the basic correct WADL rendering:
<resource path="/helloMultipart"><method
name="POST"><request><representation
mediaType="multipart/form-data"/></request>

Which will become after wadl2java:
postHelloMultipart(MultipartBody body);

It would be nice to have the DataHandler rendered correctly in the WADL.

Best regards,
Johannes

Reply via email to