Class HttpClock

All Implemented Interfaces:
TimeSource<Moment>

public class HttpClock extends NetTimeConnector<NetTimeConfiguration>

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 Details

    • HttpClock

      public HttpClock(String server)

      Creates a new clock which connects to given web server.

      Parameters:
      server - web server address (example: www.google.com)