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
The servlet returns the multipart response based on a parameter in the URL.
Thanks,
Tim
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Also, it needs to handle streaming.
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
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/
>>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
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
ASKER
I figured it out.
Thanks.
Thanks.
:)
joex, Can you say what you did for the benefit of future visitors?
joex, Can you say what you did for the benefit of future visitors?
ASKER