Oleg Kalnichevski wrote:
On Thu, 2009-11-12 at 15:47 +1100, Scott Yeadon wrote:
"HttpMultipart"-based requests. It appears the simplest means to POST a
request with multipart/mixed contentType is to create a new entity class
implementing HttpEntity (e.g. MultipartMixedEntity) - is that correct or
are there other means of doing this with the 4.0 API?
You will be better off just overriding the #generateContentTypre method
of the MultipartEntity class.
I agree with Oleg, I have done as he says, I have extended the
MultipartMime class and overridden one or two methods. I remember there
were some issues with setting and getting the content type, I don't know
if that has been fixed or not.
Christine
Also, what is the relation between these sets of entity classes - the
HttpEntity implentations appear in the "entity" package and the others
appear in the "mime" package? Is there some sort of de-lineation or
usage rules for these classes I should be aware of?
HttpMime is somewhat special because it is not fully API stable due to
its dependency on Mime4j, which is still considered API unstable.
Hope this answers your question.
Oleg
Thanks.
Scott.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
dagdag is just a two-character rotation of byebye.