org.torweg.pulse.component.statistics.model
Class UserAgent
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.component.statistics.model.AbstractRegexVersioned
org.torweg.pulse.component.statistics.model.UserAgent
- All Implemented Interfaces:
- java.io.Serializable, INamed
@Entity
public class UserAgent
- extends AbstractRegexVersioned
Represents an user-agent.
- Version:
- $Revision: 1620 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
|
Constructor Summary |
protected |
UserAgent()
Deprecated. |
|
UserAgent(java.lang.String cat,
java.lang.String n,
java.lang.String reg)
Creates a new UserAgent with the given category, display
name and regular expression. |
|
Method Summary |
static UserAgent |
unknown()
Returns the default UserAgent for representing a unknown
user-agent within the website statistics. |
| Methods inherited from class org.torweg.pulse.component.statistics.model.AbstractRegexVersioned |
addVersion, getCategory, getRegex, getVersion, getVersions, isMatch, isUnknown, setCategory, setName, setRegex, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UserAgent
@Deprecated
protected UserAgent()
- Deprecated.
- Default constructor.
UserAgent
public UserAgent(java.lang.String cat,
java.lang.String n,
java.lang.String reg)
- Creates a new
UserAgent with the given category, display
name and regular expression.
- Parameters:
cat - the name of the categoryn - the default display namereg - the default regular expression
- Throws:
java.lang.IllegalArgumentException -
- if the given category is
null or empty
string
- if the given name is
null or empty string
- if the given regular expression is
null or
empty string
unknown
public static final UserAgent unknown()
- Returns the default
UserAgent for representing a unknown
user-agent within the website statistics.
- category: unknown
- defaultDisplayName: unknown
- regex: "empty string"
- Returns:
- the default "unknown"
UserAgent