users@jersey.java.net

Re: [Jersey] Hello World! and Welcome to jersey-multipart

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Thu, 20 Nov 2008 15:19:46 -0800

Gili wrote:
> Craig McClanahan wrote:
>
>> ClientConfig config = new DefaultClientConfig();
>> config.getClasses().add(MultiPartReader.class);
>> config.getClasses().add(MultiPartWriter.class);
>> config.getClasses().add(MultiPartBeanProvider.class);
>> config.getClasses().add(MultiPartConfigProvider.class);
>> client = Client.create(config);
>>
>>
>
> Hi,
>
> I'm curious, do I still need to manually wire the ClientConfig to use
> jersey-multipart on the client?
>
> Gili
>
My experience was that this was indeed necessary, although it's worth
trying without because there might have been improvements in this area
in the client code, since I originally wrote this code.

Craig