Is an implementation over https://github.com/ua-parser/uap-java
- Can auto schedule updates every one our retrieving the yaml from a url.
- It has a Guava-Cache implementation or can be extended to use others.
- Parse agent strings and retriever, Device, OS and User Agent information.
- Added failsafe url for resource
- Added url loading success and failure listener
To start the Parser with schedule and GuavaCache:
Parser parser = new Parser()
.cache(new GuavaCache())
.startSchedule();
To start using it:
parser.parse(....);
To stop the scheduling process:
parser.stopSchedule();
For Maven
<repository>
<repository>
<id>io.gromit.releases</id>
<url>http://repository.gromit.io.s3.amazonaws.com</url>
</repository>
</repository>
<dependency>
<groupId>io.gromit</groupId>
<artifactId>uap-java</artifactId>
<version>0.5.0</version>
</dependency>
For Gradle
maven {
url "http://repository.gromit.io.s3.amazonaws.com/"
}
dependencies {
compile 'io.gromit:uap-java:0.5.0'
}
Apache License http://www.apache.org/licenses/LICENSE-2.0