Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.17 KB

README.md

File metadata and controls

54 lines (41 loc) · 1.17 KB

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.
  • Added failsafe url for resource
  • Added url loading success and failure listener

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

For Gradle

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

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

License

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