CXF Http管道-超时被忽略(JAVA)

时间:2018-08-06 13:30:35

标签: java http-headers cxf

我正在以Java编程方式创建HTTPConduit,我想将管道名称更改为 *。http_conduit

我该如何设置?

源代码:

Client client = ClientProxy.getClient(port);  
HTTPConduit http = (HTTPConduit) client.getConduit();   
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();   
httpClientPolicy.setConnectionTimeout(600000);      
httpClientPolicy.setAllowChunking(false);     
http.setClient(httpClientPolicy);

0 个答案:

没有答案