/uap-java

Primary LanguageJavaApache License 2.0Apache-2.0

uap-java

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.

Usage

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();

Maven Repo

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.4.0</version>
</dependency>

For Gradle

maven {
    url "http://repository.gromit.io.s3.amazonaws.com/"
}

dependencies {
	compile 'io.gromit:uap-java:0.4.0'
}

License

Apache License http://www.apache.org/licenses/LICENSE-2.0