de.hawlitzek.logparser
Class BrowserEntry

java.lang.Object
  |
  +--de.hawlitzek.util.text.CountedEntry
        |
        +--de.hawlitzek.logparser.BrowserEntry

public class BrowserEntry
extends CountedEntry

This class represents the entries of a collection of browser infos in the http log. It also contains a method to identify the browser type out of the browser info. It is derived from CountedEntry provides statistic base functionality.

Author:
Florian Hawlitzek, Hawlitzek IT-Consulting GmbH

Field Summary
 
Fields inherited from class de.hawlitzek.util.text.CountedEntry
id, nrOccurencesAbsolute, nrOccurencesRelative
 
Constructor Summary
BrowserEntry(java.lang.String browser)
          Constructor
 
Method Summary
 java.lang.String getBrowser()
          Gets the browser
static java.lang.String getBrowserType(java.lang.String browserInfo)
          provides the browser type for the given browser info in the http log.
 void setBrowser(java.lang.String browser)
          Sets the browser
 java.lang.String toString()
           
 
Methods inherited from class de.hawlitzek.util.text.CountedEntry
addAnzVorkommen, calcNrOccurencesRelative, getId, getNrOccurencesAbsolute, getNrOccurencesRelative, getNrOccurencesRelativeAsString, setId, setNrOccurencesAbsolute, setNrOccurencesRelative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserEntry

public BrowserEntry(java.lang.String browser)
Constructor

Method Detail

getBrowserType

public static java.lang.String getBrowserType(java.lang.String browserInfo)
provides the browser type for the given browser info in the http log. Subtypes like MSIE 5.5.1 und 5.5.3 are being summarized.


getBrowser

public java.lang.String getBrowser()
Gets the browser

Returns:
Returns a String

setBrowser

public void setBrowser(java.lang.String browser)
Sets the browser

Parameters:
browser - The browser to set

toString

public java.lang.String toString()
Overrides:
toString in class CountedEntry