![JAR search and dependency download from the Maven repository](/logo.png)
com.jakewharton.pingdom.services.ServerTimeService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pingdom-java Show documentation
Show all versions of pingdom-java Show documentation
A Java wrapper around the Pingdom RESTful API and a simple DSL for easy interaction.
The newest version!
package com.jakewharton.pingdom.services;
import com.google.gson.reflect.TypeToken;
import com.jakewharton.pingdom.PingdomApiBuilder;
import com.jakewharton.pingdom.PingdomApiService;
import com.jakewharton.pingdom.entities.ServerTime;
/**
* Represents Pingdom's remote server time service.
*/
public class ServerTimeService extends PingdomApiService {
/**
* Get the current time of the API server.
*
* @return Builder instance.
* @since 2.0
*/
public GetBuilder get() {
return new GetBuilder(this);
}
/**
* Request builder for {@link ServerTimeService#get()}.
*/
public static final class GetBuilder extends PingdomApiBuilder {
private static final String URI = "/servertime";
private GetBuilder(ServerTimeService service) {
super(service, new TypeToken() {}, URI);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy