本文整理了Java中java.net.HttpURLConnection.getDate()
方法的一些代码示例,展示了HttpURLConnection.getDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpURLConnection.getDate()
方法的具体详情如下:
包路径:java.net.HttpURLConnection
类名称:HttpURLConnection
方法名:getDate
暂无
代码示例来源:origin: square/okhttp
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: prestodb/presto
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: apiman/apiman
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: org.pageseeder.bridge/pso-bridge
/**
* Returns the value of "Date" response header.
*
* <pre><code>Date: Tue, 21 Jun 2016 05:10:06 GMT</code></pre>
*
* @return the value of "Date" response header or 0 if the date is not known.
*/
@Override
public long date() {
HttpURLConnection con = this._connection;
if (con == null) return 0;
return con.getDate();
}
代码示例来源:origin: hgoebl/DavidWebb
/**
* Returns the date when the request was created (server-time).
* <br>
* See <a href="http://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html#getDate()">
* URLConnection.getDate()</a>
*
* @return the parsed "Date" header as millis or <code>0</code> if this header was not set.
*/
public long getDate() {
return connection.getDate();
}
代码示例来源:origin: EvoSuite/evosuite
@Override
public long getDate() {
return super.getDate();
}
代码示例来源:origin: errai/errai
public long getDate() {
if (this.urlConnection == null) return -1;
return (this.urlConnection.getDate());
}
代码示例来源:origin: org.jboss.errai/errai-tools
public long getDate() {
if (this.urlConnection == null) return -1;
return (this.urlConnection.getDate());
}
代码示例来源:origin: com.squareup.okhttp/okhttp-urlconnection
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: com.squareup.okhttp3/okhttp-urlconnection
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: com.facebook.presto/presto-jdbc
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: com.github.ljun20160606/okhttp-urlconnection
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: io.apiman/apiman-gateway-platforms-servlet
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: io.prestosql/presto-jdbc
@Override public long getDate() {
return delegate.getDate();
}
代码示例来源:origin: kohsuke/jcifs
public long getDate() {
try {
handshake();
} catch (IOException ex) { }
return connection.getDate();
}
代码示例来源:origin: jcifs/jcifs
public long getDate() {
try {
handshake();
} catch (IOException ex) { }
return connection.getDate();
}
代码示例来源:origin: AgNO3/jcifs-ng
@Override
public long getDate () {
handshake();
return this.connection.getDate();
}
代码示例来源:origin: org.codelibs/jcifs
@Override
public long getDate () {
handshake();
return this.connection.getDate();
}
代码示例来源:origin: com.jaeksoft/jcifs-krb5-jdk7
public long getDate() {
try {
handshake();
} catch (IOException ex) { }
return connection.getDate();
}
代码示例来源:origin: com.github.mcpat.gcf/gcf-standard
public final long getDate() throws IOException {
ensureOpen();
return connection.getDate();
}
内容来源于网络,如有侵权,请联系作者删除!