fiftyone.device.example
Class Shared

java.lang.Object
  extended by fiftyone.device.example.Shared

public class Shared
extends Object

Contains various constants used in the examples and convenience methods for accessing example data files which accommodate the styles of various IDEs in starting programs with the module as the working directory or the root of the project as working directory.


Field Summary
static String BASE_DIRECTORY
          Assumes working directory is of this module.
static String GOOD_USER_AGENTS_FILE
           
static String LITE_PATTERN_V31
           
static String LITE_PATTERN_V32
           
static String LITE_TRIE_V30
           
static String LITE_TRIE_V32
           
static String[] USERAGENTS
          A small collection of actual HTTP User-Agent header values for testing
 
Constructor Summary
Shared()
           
 
Method Summary
static String getGoodUserAgentsFile()
          get the name of the sample HTTP User-Agent file containing 20,000 HTTP User-Agent header values
static String getLitePatternV31()
          get the name of the V3.1 Pattern Detection file
static String getLitePatternV32()
          get the name of the V3.2 Pattern Detection file
static String getLiteTrieV30()
          get the name of the V3.0 Trie Detection file
static String getLiteTrieV32()
          get the name of the V3.2 Trie Detection file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERAGENTS

public static final String[] USERAGENTS
A small collection of actual HTTP User-Agent header values for testing


GOOD_USER_AGENTS_FILE

public static String GOOD_USER_AGENTS_FILE

LITE_PATTERN_V31

public static String LITE_PATTERN_V31

LITE_PATTERN_V32

public static String LITE_PATTERN_V32

LITE_TRIE_V30

public static String LITE_TRIE_V30

LITE_TRIE_V32

public static String LITE_TRIE_V32

BASE_DIRECTORY

public static String BASE_DIRECTORY
Assumes working directory is of this module. May be reset by static initialiser if working directory is project root

Constructor Detail

Shared

public Shared()
Method Detail

getGoodUserAgentsFile

public static String getGoodUserAgentsFile()
get the name of the sample HTTP User-Agent file containing 20,000 HTTP User-Agent header values

Returns:
the name relative to the working directory

getLitePatternV31

public static String getLitePatternV31()
get the name of the V3.1 Pattern Detection file

Returns:
the name relative to the working directory

getLitePatternV32

public static String getLitePatternV32()
get the name of the V3.2 Pattern Detection file

Returns:
the name relative to the working directory

getLiteTrieV30

public static String getLiteTrieV30()
get the name of the V3.0 Trie Detection file

Returns:
the name relative to the working directory

getLiteTrieV32

public static String getLiteTrieV32()
get the name of the V3.2 Trie Detection file

Returns:
the name relative to the working directory


Copyright © 2017 51Degrees. All rights reserved.