Java
These libraries are designed for use with Java.
The library name corresponds to the name of the service.
It is important to verify the version of the service you are accessing and to install a compatible version of the library.
Integration
The base URL for the Maven repository (for build systems) is: https://public.nora.veeroute.ru/maven2/
No authorization is required for public artifacts.
Gradle — Groovy DSL
repositories {
google()
mavenCentral()
maven {
url = uri("https://public.nora.veeroute.ru/maven2/")
}
}
Maven
In pom.xml:
<repositories>
<repository>
<id>veeroute-nora</id>
<url>https://public.nora.veeroute.ru/maven2/</url>
</repository>
</repositories>
Dependency:
<dependency>
<groupId>com.veeroute.lss.java</groupId>
<artifactId>monitor</artifactId>
<version>7.49.3654</version>
</dependency>
Archived Versions
Archived versions of the libraries can be found in Maven Central.
Usage
When using the library, it is recommended to set connection timeouts (which may vary depending on the environment):
ApiClient client = new ApiClient();
client.setConnectTimeout((int) TimeUnit.SECONDS.toMillis(60));
client.setReadTimeout((int) TimeUnit.SECONDS.toMillis(60));
client.setWriteTimeout(((int) TimeUnit.SECONDS.toMillis(60)));