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
Constructors -
Method Summary
Methods inherited from class net.time4j.clock.NetTimeConnector
connect, currentTime, getLastConnectionTime, getLastOffsetInMicros, getNetTimeConfiguration, isLogEnabled, isRunning, reconfigure, setLogWriterMethods inherited from class net.time4j.clock.AbstractClock
inLocalView, inPlatformView, inZonalView, inZonalViewMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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)
-