类 CapabilitiesImpl

java.lang.Object
com.walker.web.agent.impl.CapabilitiesImpl
所有已实现的接口:
Capabilities

public class CapabilitiesImpl extends Object implements Capabilities
  • 方法详细资料

    • getValue

      public String getValue(BrowsCapField field)
      从接口复制的说明: Capabilities
      Returns the value for the specified field.
      指定者:
      getValue 在接口中 Capabilities
      参数:
      field - The field for which the value should be returned.
      返回:
      the value for the specified field.
    • getBrowser

      public String getBrowser()
      Returns the browser value (e.g. Chrome)
      指定者:
      getBrowser 在接口中 Capabilities
      返回:
      the browser
    • getBrowserType

      public String getBrowserType()
      Returns the browser type (e.g. Browser or Application)
      指定者:
      getBrowserType 在接口中 Capabilities
      返回:
      the browser type
    • getBrowserMajorVersion

      public String getBrowserMajorVersion()
      Returns the major version of the browser (e.g. 55 in case of Chrome)
      指定者:
      getBrowserMajorVersion 在接口中 Capabilities
      返回:
      the browser major version
    • getPlatform

      public String getPlatform()
      Returns the platform name (e.g. Android, iOS, Win7, Win10)
      指定者:
      getPlatform 在接口中 Capabilities
      返回:
      the platform
    • getPlatformVersion

      public String getPlatformVersion()
      Returns the platform version (e.g. 4.2, 10 depending on what the platform is)
      指定者:
      getPlatformVersion 在接口中 Capabilities
      返回:
      the platform version
    • getDeviceType

      public String getDeviceType()
      Returns the device type (e.g. Mobile Phone, Desktop, Tablet, Console, TV Device)
      指定者:
      getDeviceType 在接口中 Capabilities
      返回:
      the device type
    • getValues

      public Map<BrowsCapField,String> getValues()
      Returns the Map of values with the fields passed to the parser while loading
      指定者:
      getValues 在接口中 Capabilities
      返回:
      the map of values
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object