java.net.URLConnection.getIfModifiedSince()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中java.net.URLConnection.getIfModifiedSince()方法的一些代码示例,展示了URLConnection.getIfModifiedSince()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URLConnection.getIfModifiedSince()方法的具体详情如下:
包路径:java.net.URLConnection
类名称:URLConnection
方法名:getIfModifiedSince

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();
}

相关文章

URLConnection类方法