Link to home
Start Free TrialLog in
Avatar of joex
joex

asked on

Parsing multi-part response

Would like java code to parse multipart/mixed response returned from a servlet.

The servlet returns the multipart response based on a parameter in the URL.

Thanks,

Tim
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of joex
joex

ASKER

Please provide more details as this is completely new to me.
Avatar of joex

ASKER

Also, it needs to handle streaming.
I think you mean  multipart   "request"    
http://commons.apache.org/fileupload/ 
has  
Streaming API.
Avatar of joex

ASKER

The response being sent has the following setting:  "multipart/mixed".  
Ok, I was wrong.
Actually, surprisingly, it seems HttpClient doesn't support this response type directly. Have a look into

http://incubator.apache.org/wink/1.1/api/org/apache/wink/common/model/multipart/InMultiPart.html

instead
Hope it will help you :
http://www.servlets.com/cos/
>>http://www.servlets.com/cos/

No doubt since that's server-oriented, it seems to have classes for producing that type of response, but none for parsing them, unless i've overlooked it
Avatar of joex

ASKER

I figured it out.

Thanks.
:)

joex, Can you say what you did for the benefit of future visitors?