[
https://issues.apache.org/jira/browse/CXF-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870201#comment-17870201
]
John Tal edited comment on CXF-8931 at 8/1/24 3:07 PM:
-------------------------------------------------------
I'm looking at this test case in the cxf project,
org.apache.cxf.transport.http.policy.ClientPolicyCalculatorTest, it has this
import: import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
Have found that HTTPClientPolicy is a generated class under:
./rt/transports/http/target/generated/src/main/java/org/apache/cxf/transports/http/configuration/HTTPClientPolicy.java
The generated method is here:
/**
Sets the value of the allowChunking property.
@see #isAllowChunking()
*/
public void setAllowChunking(boolean value) \{
propertyListener.firePropertyChange("allowChunking", allowChunking, ((Boolean)
value)); allowChunking = value; }
**********
I'm also reading this
[https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html]
h1. Default Client Transport
Prior to Apache CXF 3.6.0 / 4.0.1, the default HTTP client transport was
{*}URLConnectionHTTPConduit{*}, that is built on top of
{*}[java.net|http://java.net/].{*}{*}HttpURLConnection{*} /
{*}[javax.net|http://javax.net/].ssl.{*}{*}HttpsURLConnection{*} (JDK standard
library). Past these releases, the default HTTP client transport has become
*HttpClientHTTPConduit* that is using
*[java.net|http://java.net/].http.HttpClient* under the hood (see please [JEP
321: HTTP Client|https://openjdk.org/jeps/321]).
These are pretty important notes. Are these included as .md files in the
github cxf project somewhere?
was (Author: JIRAUSER303766):
I'm looking at this test case in the cxf project,
org.apache.cxf.transport.http.policy.ClientPolicyCalculatorTest, it has this
import: import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
Have found that HTTPClientPolicy is a generated class under:
./rt/transports/http/target/generated/src/main/java/org/apache/cxf/transports/http/configuration/HTTPClientPolicy.java
The generated method is here:
/**
Sets the value of the allowChunking property.
@see #isAllowChunking()
*/
public void setAllowChunking(boolean value) \{
propertyListener.firePropertyChange("allowChunking", allowChunking, ((Boolean)
value)); allowChunking = value; }
The propertyListener may be HttpConduitConfigApplier.applyClientPolicies:
} else if ("AllowChunking".equals(k)) {
p.setAllowChunking(Boolean.parseBoolean(v.trim()));
Does the check here need to be ("AllowChunking".equalsIgnoreCase(K) ?
**********
I'm also reading this
[https://cxf.apache.org/docs/client-http-transport-including-ssl-support.html]
h1. Default Client Transport
Prior to Apache CXF 3.6.0 / 4.0.1, the default HTTP client transport was
{*}URLConnectionHTTPConduit{*}, that is built on top of
{*}[java.net|http://java.net/].{*}{*}HttpURLConnection{*} /
{*}[javax.net|http://javax.net/].ssl.{*}{*}HttpsURLConnection{*} (JDK standard
library). Past these releases, the default HTTP client transport has become
*HttpClientHTTPConduit* that is using
*[java.net|http://java.net/].http.HttpClient* under the hood (see please [JEP
321: HTTP Client|https://openjdk.org/jeps/321]).
These are pretty important notes. Are these included as .md files in the
github cxf project somewhere?
> HttpClientHTTPConduit can't disable the http chunk mode
> -------------------------------------------------------
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
> Issue Type: Bug
> Reporter: Jim Ma
> Assignee: Jim Ma
> Priority: Major
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)