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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BrowserEntry
public BrowserEntry(java.lang.String browser)
- Constructor
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