Class TimestampControllerImpl
java.lang.Object
org.eblocker.server.http.controller.impl.TimestampControllerImpl
- All Implemented Interfaces:
TimestampController
A controller that can return timestamps for the client
(since the client might have an incorrect clock)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalTimestamp(org.restexpress.Request request, org.restexpress.Response response)
-
Constructor Details
-
TimestampControllerImpl
@Inject public TimestampControllerImpl(java.time.Clock clock)
-
-
Method Details
-
getLocalTimestamp
- Specified by:
getLocalTimestampin interfaceTimestampController
-