All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mngsk.devicedetector.client.bot.Bot Maven / Gradle / Ivy

Go to download

The Universal Device Detection library that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models.

There is a newer version: 1.0.10
Show newest version
package io.github.mngsk.devicedetector.client.bot;

import java.util.Optional;

import io.github.mngsk.devicedetector.client.Client;

public class Bot extends Client {

	private final String category;
	private final String url;
	private final BotProducer producer;

	public Bot(String name, String category, String url, BotProducer producer) {
		super("bot", name, null);
		this.category = category;
		this.url = url;
		this.producer = producer;
	}

	public Optional getCategory() {
		return Optional.ofNullable(this.category);
	}

	public Optional getUrl() {
		return Optional.ofNullable(this.url);
	}

	public Optional getProducer() {
		return Optional.ofNullable(this.producer);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy