Java client for working with VinylDNS
To pull the latest version from Sonatype, add a dependency to the pom.xml
file corresponding to the Sonatype version you want to use:
<dependency>
<groupId>vinyldns</groupId>
<artifactId>vinyldns-java</artifactId>
<version>0.7.1</version> <!-- Replace with the latest release version -->
</dependency>
To pull in a local package of vinyldns-java
as a Maven dependency, the project needs to be published to your local Maven repository by running the following command from the project root folder:
mvn clean install
AWSCredentials credentials = new BasicAWSCredentials("key", "secret");
VinylDNSClientConfig config = new VinylDNSClientConfig("https://path.to.your.vinyldns", credentials);
VinylDNSClient client = new VinylDNSClientImpl(config);
VinylDNSResponse<ListZonesResponse> listZonesResponse = client.listZones(new ListZonesRequest());
See VinylDNSClient interface to get more methods
vinyldns-java
has a suite of unit tests to run to test expected behavior. To run the suite of tests, run the following command from the project root folder:
mvn test