com.github.zhangxd1989.basetool.http.useragent.Engine Maven / Gradle / Ivy
package com.github.zhangxd1989.basetool.http.useragent;
import com.github.zhangxd1989.basetool.collection.CollectionUtil;
import java.util.List;
/**
* 引擎对象
*
* @author sheldon
*/
public class Engine extends UserAgentInfo {
/**
* 未知
*/
public static final Engine UNKNOWN = new Engine(NAME_UNKNOWN, null);
/**
* 支持的引擎类型
*/
public static final List ENGINES = CollectionUtil.newArrayList(
new Engine("Trident", "trident"),
new Engine("Webkit", "webkit"),
new Engine("Chrome", "chrome"),
new Engine("Opera", "opera"),
new Engine("Presto", "presto"),
new Engine("Gecko", "gecko"),
new Engine("KHTML", "khtml"),
new Engine("Konqeror", "konqueror"),
new Engine("MIDP", "MIDP")
);
/**
* 构造
*
* @param name 引擎名称
* @param regex 关键字或表达式
*/
public Engine(String name, String regex) {
super(name, regex);
}
}