You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Graham Leggett <mi...@sharp.fm.INVALID> on 2022/06/11 08:30:36 UTC

org.apache.http.client.methods.HttpEntityEnclosingRequestBase removed - what replaced it?

Hi all,

I am looking at how feasible it is to upgrade jackrabbit from httpclient 4 to 5, and have found that the following class was removed in trunk:

org.apache.http.client.methods.HttpEntityEnclosingRequestBase

There is nothing in the javadocs for 4.x to show that the class is deprecated or what it’s been replaced with, can anyone confirm what replaces this class?

https://github.com/apache/jackrabbit/blob/ed3124e5fe223dada33ce6ddf53bc666063c3f2f/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/BaseDavRequest.java#L47

Regards,
Graham
—


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: org.apache.http.client.methods.HttpEntityEnclosingRequestBase removed - what replaced it?

Posted by th...@gmail.com.

On 11/06/2022 13:32, Oleg Kalnichevski wrote:
> On Sat, 2022-06-11 at 10:30 +0200, Graham Leggett wrote:
>> Hi all,
>>
>> I am looking at how feasible it is to upgrade jackrabbit from
>> httpclient 4 to 5, and have found that the following class was
>> removed in trunk:
>>
>> org.apache.http.client.methods.HttpEntityEnclosingRequestBase
>>
>> There is nothing in the javadocs for 4.x to show that the class is
>> deprecated or what it’s been replaced with, can anyone confirm what
>> replaces this class?
>>
>> https://github.com/apache/jackrabbit/blob/ed3124e5fe223dada33ce6ddf53bc666063c3f2f/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/BaseDavRequest.java#L47
>>
>> Regards,
>> Graham
> 
> Hi Graham
> 
> As of version 5.0 all HTTP methods can include a message context body.

Hi.

(I hope you don't mind the drive by post.)

In practise that might not be the case, InternalHttpClient and 
HttpRequestRetryExec both use ClassicRequestBuilder to copy the request 
which prevents TRACE methods to be sent with an entity.

Is this something that should be changed (to be allowed)?

Thank you!
Best regards.

> 
> For more details please see:
> 
> https://hc.apache.org/httpcomponents-client-5.1.x/migration-guide/migration-to-classic.html
> 
> Oleg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: org.apache.http.client.methods.HttpEntityEnclosingRequestBase removed - what replaced it?

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2022-06-11 at 10:30 +0200, Graham Leggett wrote:
> Hi all,
> 
> I am looking at how feasible it is to upgrade jackrabbit from
> httpclient 4 to 5, and have found that the following class was
> removed in trunk:
> 
> org.apache.http.client.methods.HttpEntityEnclosingRequestBase
> 
> There is nothing in the javadocs for 4.x to show that the class is
> deprecated or what it’s been replaced with, can anyone confirm what
> replaces this class?
> 
> https://github.com/apache/jackrabbit/blob/ed3124e5fe223dada33ce6ddf53bc666063c3f2f/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/BaseDavRequest.java#L47
> 
> Regards,
> Graham

Hi Graham

As of version 5.0 all HTTP methods can include a message context body. 

For more details please see:

https://hc.apache.org/httpcomponents-client-5.1.x/migration-guide/migration-to-classic.html

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org