|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.uadetector.UserAgent.Builder
public static final class UserAgent.Builder
Constructor Summary | |
---|---|
UserAgent.Builder()
|
|
UserAgent.Builder(java.lang.String userAgentString)
|
Method Summary | |
---|---|
UserAgent |
build()
|
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. |
java.lang.String |
getUserAgentString()
|
VersionNumber |
getVersionNumber()
Gets the version number of an user agent. |
UserAgent.Builder |
setDeviceCategory(DeviceCategory deviceCategory)
|
UserAgent.Builder |
setFamily(UserAgentFamily family)
|
UserAgent.Builder |
setIcon(java.lang.String icon)
|
UserAgent.Builder |
setName(java.lang.String name)
|
UserAgent.Builder |
setOperatingSystem(OperatingSystem operatingSystem)
|
UserAgent.Builder |
setOperatingSystem(ReadableOperatingSystem os)
|
UserAgent.Builder |
setProducer(java.lang.String producer)
|
UserAgent.Builder |
setProducerUrl(java.lang.String producerUrl)
|
UserAgent.Builder |
setType(UserAgentType type)
|
UserAgent.Builder |
setTypeName(java.lang.String typeName)
|
UserAgent.Builder |
setUrl(java.lang.String url)
|
UserAgent.Builder |
setUserAgentString(java.lang.String userAgentString)
|
UserAgent.Builder |
setVersionNumber(VersionNumber versionNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserAgent.Builder()
public UserAgent.Builder(@Nonnull java.lang.String userAgentString)
Method Detail |
---|
@Nonnull public UserAgent build()
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 java.lang.String getUserAgentString()
public VersionNumber getVersionNumber()
ReadableUserAgent
getVersionNumber
in interface ReadableUserAgent
@Nonnull public UserAgent.Builder setDeviceCategory(@Nonnull DeviceCategory deviceCategory)
@Nonnull public UserAgent.Builder setFamily(@Nonnull UserAgentFamily family)
@Nonnull public UserAgent.Builder setIcon(@Nonnull java.lang.String icon)
@Nonnull public UserAgent.Builder setName(@Nonnull java.lang.String name)
@Nonnull public UserAgent.Builder setOperatingSystem(@Nonnull OperatingSystem operatingSystem)
@Nonnull public UserAgent.Builder setOperatingSystem(@Nonnull ReadableOperatingSystem os)
@Nonnull public UserAgent.Builder setProducer(@Nonnull java.lang.String producer)
@Nonnull public UserAgent.Builder setProducerUrl(@Nonnull java.lang.String producerUrl)
@Nonnull public UserAgent.Builder setType(@Nonnull UserAgentType type)
@Nonnull public UserAgent.Builder setTypeName(@Nonnull java.lang.String typeName)
@Nonnull public UserAgent.Builder setUrl(@Nonnull java.lang.String url)
@Nonnull public UserAgent.Builder setUserAgentString(@Nonnull java.lang.String userAgentString)
@Nonnull public UserAgent.Builder setVersionNumber(@Nonnull VersionNumber versionNumber)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |