Skip to content

mmarmol/uap-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Is an implementation over https://github.com/ua-parser/uap-java with more features

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages