Package net.time4j.clock
Class HttpClock
- All Implemented Interfaces:
TimeSource<Moment>
Represents a connection to a web server via the HTTP-protocol in order to evaluate the DATE-header of the HTTP-response.
Note: This implementation is threadsafe.
- Since:
- 2.1
- Author:
- Meno Hochschild
-
Constructor Summary
-
Method Summary
Methods inherited from class net.time4j.clock.NetTimeConnector
connect, currentTime, getLastConnectionTime, getLastOffsetInMicros, getNetTimeConfiguration, isLogEnabled, isRunning, reconfigure, setLogWriter
Methods inherited from class net.time4j.clock.AbstractClock
inLocalView, inPlatformView, inZonalView, inZonalView
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.time4j.base.TimeSource
currentInstant
-
Constructor Details
-
HttpClock
Creates a new clock which connects to given web server.
- Parameters:
server
- web server address (example: www.google.com)
-