You can use the javax.mail.internet.MimeMultipart class to parse the multipart mime body
yourself or...
you can cheat to some degree and use apache commons file-upload to parse the body. it will
treat everything as a FileItem, but if the parameters are small enough (like simple
string) it will keep them in memory. You will have to access the parts like they were
file, but, all the parsing is done for you...or....
you could look at the FileUploadBase.parseRequest method and see how they are parsing the
multipart body and steal from there and make it your own...
There are probably other packages out there that provide similar behavior.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964118#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...