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

com.litongjava.tio.utils.http.useragent.Engine Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
package com.litongjava.tio.utils.http.useragent;

import java.util.List;

import com.litongjava.tio.utils.hutool.CollUtil;

/**
 * 引擎对象
 * 
 * @author looly
 * @since 4.2.1
 */
public class Engine extends UserAgentInfo {

  /** 未知 */
  public static final Engine Unknown = new Engine(NameUnknown, null);

  /**
   * 支持的引擎类型
   */
  public static final List engines = CollUtil.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);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy