net.sf.uadetector.ReadableUserAgent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of uadetector-core Show documentation
Show all versions of uadetector-core Show documentation
The UADetector core library includes the API and implementation to read the detection information and the functions to identify User-Agents, but not the database (also known as UAS data). The UAS data can be found in the resources module.
The newest version!
/*******************************************************************************
* Copyright 2012 André Rouél
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
package net.sf.uadetector;
/**
* 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
*/
public interface ReadableUserAgent
{
/**
* Gets the detected device category.
*
* @return detected device category
*/
@javax.validation.constraints.NotNull
ReadableDeviceCategory getDeviceCategory();
/**
* Gets the family of an user agent.
*
* @return family of an user agent
*/
@javax.validation.constraints.NotNull
UserAgentFamily getFamily();
/**
* Gets the icon name of an user agent.
*
* @return icon name of an user agent
*/
@javax.validation.constraints.NotNull
String getIcon();
/**
* Gets the name of an user agent.
*
* @return name of an user agent
*/
@javax.validation.constraints.NotNull
String getName();
/**
* Gets the operating system on which the user agent is running.
*
* @return the running operating system
*/
@javax.validation.constraints.NotNull
OperatingSystem getOperatingSystem();
/**
* Returns the manufacturer of an user agent.
*
* @return the manufacturer
*/
@javax.validation.constraints.NotNull
String getProducer();
/**
* Returns the URL to the main website of the manufacturer of an user agent.
*
* @return URL to the website of the manufacturer
*/
@javax.validation.constraints.NotNull
String getProducerUrl();
/**
* Returns the type of an user agent, for example, mobile browser or email client.
*
* @return the type of an user agent
*/
@javax.validation.constraints.NotNull
UserAgentType getType();
/**
* Returns the type name of an user agent, for example, mobile browser or email client.
*
* @return the type name of an user agent
*/
@javax.validation.constraints.NotNull
String getTypeName();
/**
* Returns the URL to the product or information page of an user agent.
*
* @return the URL to the product page
*/
@javax.validation.constraints.NotNull
String getUrl();
/**
* Gets the version number of an user agent.
*
* @return version number of an user agent
*/
@javax.validation.constraints.NotNull
VersionNumber getVersionNumber();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy