本文整理了Java中org.apache.commons.httpclient.HttpConnection.setSoTimeout()
方法的一些代码示例,展示了HttpConnection.setSoTimeout()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpConnection.setSoTimeout()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.HttpConnection
类名称:HttpConnection
方法名:setSoTimeout
[英]Set the Socket's timeout, via Socket#setSoTimeout. If the connection is already open, the SO_TIMEOUT is changed. If no connection is open, then subsequent connections will use the timeout value.
Note: This is not a connection timeout but a timeout on network traffic!
[中]通过套接字设置套接字超时。如果连接已打开,则SO_超时将更改。如果没有打开连接,则后续连接将使用超时值。
注意:这不是连接超时,而是网络流量超时!
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* @deprecated
*/
public void setSoTimeout(int timeout)
throws SocketException, IllegalStateException {
if (hasConnection()) {
wrappedConnection.setSoTimeout(timeout);
} else {
// do nothing
}
}
内容来源于网络,如有侵权,请联系作者删除!