Hi Sergey,

Many thanks again for these explanations. I think I'm on the point of
getting it. I only would have a last question: if I have to pass an Object
and a list of of FileInputStream to the resource, I would pass it as a list
of attachments, right ? I'd be using the constructor

  Attachment(String id, InputStream is, ContentDisposition cd) ;

to build the attachments for the input streams but how can I build the
attchment to my object ? Would it be:

  Attachment(String id, String mediaType, Object object) 

But then how could I get this object on the service side ? Given that
finally I decided to have only one parameter of type MultipartBody on the
service side ?

What I mean is that there is not any constructor like:

  Attachment(String id, String mediaType, Object object, ContentDisposition
cd);

and hence I cannot get the object as usual via:

  attachment.getHeaders().getFirst("Content-Disposition");

Many thanks in advance,

Nicolas 



--
View this message in context: 
http://cxf.547215.n5.nabble.com/HTTP-415-raised-by-JAX-RS-service-consuming-multipart-tp5780784p5780868.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to