how do I parameterize an interface method for a POST call that
consumes a multipart/form-data, for use with use

The server implements something like this:

public Response doFooImpl(MultipartFormDataInput object) {
List<InputPart> items = object.getFormDataMap().get("ITEM"); /* ... */

In the client, I tried this:

Object doFoo(Map<String, DataSource> parts);

But when I run this, the client throws a

java.lang.RuntimeException: could not find writer for content-type
multipart/form-data type: java.util.Map

Would it be better to use a javax.mail.Multipart as a client-side
parameter? Or 
(if that is an "official" API class)?

Thanks, Jay

Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
Resteasy-users mailing list

Reply via email to