Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
36084c34
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
36084c34
编写于
8月 15, 2011
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed timeout assertion
上级
20f74886
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
8 deletion
+8
-8
org.springframework.web/src/main/java/org/springframework/http/client/CommonsClientHttpRequestFactory.java
...ramework/http/client/CommonsClientHttpRequestFactory.java
+2
-2
org.springframework.web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java
...k/http/client/HttpComponentsClientHttpRequestFactory.java
+2
-2
org.springframework.web/src/main/java/org/springframework/remoting/httpinvoker/CommonsHttpInvokerRequestExecutor.java
...moting/httpinvoker/CommonsHttpInvokerRequestExecutor.java
+2
-2
org.springframework.web/src/main/java/org/springframework/remoting/httpinvoker/HttpComponentsHttpInvokerRequestExecutor.java
...httpinvoker/HttpComponentsHttpInvokerRequestExecutor.java
+2
-2
未找到文件。
org.springframework.web/src/main/java/org/springframework/http/client/CommonsClientHttpRequestFactory.java
浏览文件 @
36084c34
...
@@ -96,7 +96,7 @@ public class CommonsClientHttpRequestFactory implements ClientHttpRequestFactory
...
@@ -96,7 +96,7 @@ public class CommonsClientHttpRequestFactory implements ClientHttpRequestFactory
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setConnectionTimeout(int)
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setConnectionTimeout(int)
*/
*/
public
void
setConnectTimeout
(
int
timeout
)
{
public
void
setConnectTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setConnectionTimeout
(
timeout
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setConnectionTimeout
(
timeout
);
}
}
...
@@ -107,7 +107,7 @@ public class CommonsClientHttpRequestFactory implements ClientHttpRequestFactory
...
@@ -107,7 +107,7 @@ public class CommonsClientHttpRequestFactory implements ClientHttpRequestFactory
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setSoTimeout(int)
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setSoTimeout(int)
*/
*/
public
void
setReadTimeout
(
int
timeout
)
{
public
void
setReadTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
getHttpClient
().
getHttpConnectionManager
().
getParams
().
setSoTimeout
(
timeout
);
getHttpClient
().
getHttpConnectionManager
().
getParams
().
setSoTimeout
(
timeout
);
}
}
...
...
org.springframework.web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java
浏览文件 @
36084c34
...
@@ -112,7 +112,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest
...
@@ -112,7 +112,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest
* @param timeout the timeout value in milliseconds
* @param timeout the timeout value in milliseconds
*/
*/
public
void
setConnectTimeout
(
int
timeout
)
{
public
void
setConnectTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
CONNECTION_TIMEOUT
,
timeout
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
CONNECTION_TIMEOUT
,
timeout
);
}
}
...
@@ -122,7 +122,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest
...
@@ -122,7 +122,7 @@ public class HttpComponentsClientHttpRequestFactory implements ClientHttpRequest
* @param timeout the timeout value in milliseconds
* @param timeout the timeout value in milliseconds
*/
*/
public
void
setReadTimeout
(
int
timeout
)
{
public
void
setReadTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
SO_TIMEOUT
,
timeout
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
SO_TIMEOUT
,
timeout
);
}
}
...
...
org.springframework.web/src/main/java/org/springframework/remoting/httpinvoker/CommonsHttpInvokerRequestExecutor.java
浏览文件 @
36084c34
...
@@ -102,7 +102,7 @@ public class CommonsHttpInvokerRequestExecutor extends AbstractHttpInvokerReques
...
@@ -102,7 +102,7 @@ public class CommonsHttpInvokerRequestExecutor extends AbstractHttpInvokerReques
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setConnectionTimeout(int)
* @see org.apache.commons.httpclient.params.HttpConnectionManagerParams#setConnectionTimeout(int)
*/
*/
public
void
setConnectTimeout
(
int
timeout
)
{
public
void
setConnectTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setConnectionTimeout
(
timeout
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setConnectionTimeout
(
timeout
);
}
}
...
@@ -114,7 +114,7 @@ public class CommonsHttpInvokerRequestExecutor extends AbstractHttpInvokerReques
...
@@ -114,7 +114,7 @@ public class CommonsHttpInvokerRequestExecutor extends AbstractHttpInvokerReques
* @see #DEFAULT_READ_TIMEOUT_MILLISECONDS
* @see #DEFAULT_READ_TIMEOUT_MILLISECONDS
*/
*/
public
void
setReadTimeout
(
int
timeout
)
{
public
void
setReadTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setSoTimeout
(
timeout
);
this
.
httpClient
.
getHttpConnectionManager
().
getParams
().
setSoTimeout
(
timeout
);
}
}
...
...
org.springframework.web/src/main/java/org/springframework/remoting/httpinvoker/HttpComponentsHttpInvokerRequestExecutor.java
浏览文件 @
36084c34
...
@@ -113,7 +113,7 @@ public class HttpComponentsHttpInvokerRequestExecutor extends AbstractHttpInvoke
...
@@ -113,7 +113,7 @@ public class HttpComponentsHttpInvokerRequestExecutor extends AbstractHttpInvoke
* @param timeout the timeout value in milliseconds
* @param timeout the timeout value in milliseconds
*/
*/
public
void
setConnectTimeout
(
int
timeout
)
{
public
void
setConnectTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
CONNECTION_TIMEOUT
,
timeout
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
CONNECTION_TIMEOUT
,
timeout
);
}
}
...
@@ -124,7 +124,7 @@ public class HttpComponentsHttpInvokerRequestExecutor extends AbstractHttpInvoke
...
@@ -124,7 +124,7 @@ public class HttpComponentsHttpInvokerRequestExecutor extends AbstractHttpInvoke
* @see #DEFAULT_READ_TIMEOUT_MILLISECONDS
* @see #DEFAULT_READ_TIMEOUT_MILLISECONDS
*/
*/
public
void
setReadTimeout
(
int
timeout
)
{
public
void
setReadTimeout
(
int
timeout
)
{
Assert
.
isTrue
(
timeout
<
0
,
"Timeout must be a non-negative value"
);
Assert
.
isTrue
(
timeout
>=
0
,
"Timeout must be a non-negative value"
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
SO_TIMEOUT
,
timeout
);
getHttpClient
().
getParams
().
setIntParameter
(
CoreConnectionPNames
.
SO_TIMEOUT
,
timeout
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录