本文整理了Java中java.net.URLConnection.getIfModifiedSince()
方法的一些代码示例,展示了URLConnection.getIfModifiedSince()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URLConnection.getIfModifiedSince()
方法的具体详情如下:
包路径:java.net.URLConnection
类名称:URLConnection
方法名:getIfModifiedSince
[英]Returns the point of time since when the data must be modified to be transmitted. Some protocols transmit data only if it has been modified more recently than a particular time.
[中]返回必须修改数据才能传输的时间点。有些协议仅在数据最近被修改的时间超过特定时间时才传输数据。
代码示例来源:origin: jmaki/ajax-wrapper-comp
public long getIfModifiedSince() {
if (this.urlConnection == null) return -1;
return (this.urlConnection.getIfModifiedSince());
}
}
代码示例来源:origin: freeplane/freeplane
public long getIfModifiedSince() {
return connection.getIfModifiedSince();
}
代码示例来源:origin: org.eclipse.jetty.osgi/jetty-osgi-boot-warurl
@Override
public long getIfModifiedSince()
{
return _conn.getIfModifiedSince();
}
代码示例来源:origin: org.jboss/jboss-common-core
public long getIfModifiedSince() {
return delegateConnection.getIfModifiedSince();
}
代码示例来源:origin: org.samba.jcifs/jcifs
public long getIfModifiedSince() {
return connection.getIfModifiedSince();
}
代码示例来源:origin: octo-online/reactive-audit
@Test(expected = NetworkReactiveAuditException.class)
public void getIfModifiedSince()
throws IOException
{
Assume.assumeTrue(IOTestTools.isNetworkConnected());
ReactiveAudit.off.commit();
URLConnection conn = new URL("http://" + HOST + ":" + PORT).openConnection();
TestTools.strict.commit();
conn.getIfModifiedSince();
}
内容来源于网络,如有侵权,请联系作者删除!