|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.uadetector.UserAgent
public final class UserAgent
UserAgent
is an immutable entity that represents the informations about web-based client applications like
Web browsers, search engines or crawlers (spiders) as well as mobile phones, screen readers and braille browsers.
Nested Class Summary | |
---|---|
static class |
UserAgent.Builder
|
Field Summary | |
---|---|
static UserAgent |
EMPTY
|
Constructor Summary | |
---|---|
UserAgent(DeviceCategory deviceType,
UserAgentFamily family,
java.lang.String icon,
java.lang.String name,
OperatingSystem operatingSystem,
java.lang.String producer,
java.lang.String producerUrl,
UserAgentType type,
java.lang.String typeName,
java.lang.String url,
VersionNumber versionNumber)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
DeviceCategory |
getDeviceCategory()
Gets the detected device category. |
UserAgentFamily |
getFamily()
Gets the family of an user agent. |
java.lang.String |
getIcon()
Gets the icon name of an user agent. |
java.lang.String |
getName()
Gets the name of an user agent. |
OperatingSystem |
getOperatingSystem()
Gets the operating system on which the user agent is running. |
java.lang.String |
getProducer()
Returns the manufacturer of an user agent. |
java.lang.String |
getProducerUrl()
Returns the URL to the main website of the manufacturer of an user agent. |
UserAgentType |
getType()
Returns the type of an user agent, for example, mobile browser or email client. |
java.lang.String |
getTypeName()
Returns the type name of an user agent, for example, mobile browser or email client. |
java.lang.String |
getUrl()
Returns the URL to the product or information page of an user agent. |
VersionNumber |
getVersionNumber()
Gets the version number of an user agent. |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final UserAgent EMPTY
Constructor Detail |
---|
public UserAgent(@Nonnull DeviceCategory deviceType, @Nonnull UserAgentFamily family, @Nonnull java.lang.String icon, @Nonnull java.lang.String name, @Nonnull OperatingSystem operatingSystem, @Nonnull java.lang.String producer, @Nonnull java.lang.String producerUrl, @Nonnull UserAgentType type, @Nonnull java.lang.String typeName, @Nonnull java.lang.String url, @Nonnull VersionNumber versionNumber)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Nonnull public DeviceCategory getDeviceCategory()
ReadableUserAgent
getDeviceCategory
in interface ReadableUserAgent
public UserAgentFamily getFamily()
ReadableUserAgent
getFamily
in interface ReadableUserAgent
public java.lang.String getIcon()
ReadableUserAgent
getIcon
in interface ReadableUserAgent
public java.lang.String getName()
ReadableUserAgent
getName
in interface ReadableUserAgent
public OperatingSystem getOperatingSystem()
ReadableUserAgent
getOperatingSystem
in interface ReadableUserAgent
public java.lang.String getProducer()
ReadableUserAgent
getProducer
in interface ReadableUserAgent
public java.lang.String getProducerUrl()
ReadableUserAgent
getProducerUrl
in interface ReadableUserAgent
public UserAgentType getType()
ReadableUserAgent
getType
in interface ReadableUserAgent
public java.lang.String getTypeName()
ReadableUserAgent
getTypeName
in interface ReadableUserAgent
public java.lang.String getUrl()
ReadableUserAgent
getUrl
in interface ReadableUserAgent
public VersionNumber getVersionNumber()
ReadableUserAgent
getVersionNumber
in interface ReadableUserAgent
public int hashCode()
hashCode
in class java.lang.Object
@Nonnull public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |