问题描述
- 求大神解答这是在哪个包下的类
-
ttpURLConnection httpConnection = (HttpURLConnection)url.openConnection();httpConnection.setReadTimeout(20000);//设置http连接的读超时,单位是毫秒
httpConnection.connect(); Client client = new Client(httpConnection.getInputStream(), null); client.setProperty(CommonsHttpMessageSender.HTTP_TIMEOUT, String.valueOf( 20000 ));//设置发送的超时限制,单位是毫秒; client.setProperty(CommonsHttpMessageSender.DISABLE_KEEP_ALIVE, "true"); client.setProperty(CommonsHttpMessageSender.DISABLE_EXPECT_CONTINUE, "true");
求大神解答,Client和CommonsHttpMessageSender这两个类是哪个包下的,
我现在的版本xfire1.2.2这版本里没有CommonsHttpMessageSender.DISABLE_EXPECT_CONTINUE这两个常量
解决方案
Client这个类应该是个自定义类
解决方案二:
org.codehaus.xfire.client.Client
时间: 2025-01-01 23:19:25