net.sf.uadetector
Interface ReadableUserAgent

All Known Implementing Classes:
UserAgent, UserAgent.Builder

public interface ReadableUserAgent

Defines an user agent.

An user agent is a client program with which a network service can be used. The user agent is the interface to representing contents and taking orders of an user. Examples of user agents are web browsers, email programs, news reader and web crawlers.

The implementation of this interface may be mutable or immutable. This interface only gives access to retrieve data, never to change it.

Author:
André Rouél

Method Summary
 ReadableDeviceCategory 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.
 

Method Detail

getDeviceCategory

@Nonnull
ReadableDeviceCategory getDeviceCategory()
Gets the detected device category.

Returns:
detected device category

getFamily

@Nonnull
UserAgentFamily getFamily()
Gets the family of an user agent.

Returns:
family of an user agent

getIcon

@Nonnull
java.lang.String getIcon()
Gets the icon name of an user agent.

Returns:
icon name of an user agent

getName

@Nonnull
java.lang.String getName()
Gets the name of an user agent.

Returns:
name of an user agent

getOperatingSystem

@Nonnull
OperatingSystem getOperatingSystem()
Gets the operating system on which the user agent is running.

Returns:
the running operating system

getProducer

@Nonnull
java.lang.String getProducer()
Returns the manufacturer of an user agent.

Returns:
the manufacturer

getProducerUrl

@Nonnull
java.lang.String getProducerUrl()
Returns the URL to the main website of the manufacturer of an user agent.

Returns:
URL to the website of the manufacturer

getType

@Nonnull
UserAgentType getType()
Returns the type of an user agent, for example, mobile browser or email client.

Returns:
the type of an user agent

getTypeName

@Nonnull
java.lang.String getTypeName()
Returns the type name of an user agent, for example, mobile browser or email client.

Returns:
the type name of an user agent

getUrl

@Nonnull
java.lang.String getUrl()
Returns the URL to the product or information page of an user agent.

Returns:
the URL to the product page

getVersionNumber

@Nonnull
VersionNumber getVersionNumber()
Gets the version number of an user agent.

Returns:
version number of an user agent


Copyright © 2011-2014. All Rights Reserved.