com.sapportals.portal.useragent

Interface IUserAgentSet


Deprecated. Use the UserAgent in project uicore

public interface IUserAgentSet

The interface that represents user agent sets. A user agent set contains an including and an excluding list. The including list describes all user agents that are in the set and the excluding list describes all user agents that are not in the set.

The two lists are user agent pattern expressions. A user agent pattern defines a set of user agents. The structure is similar to the IUserAgent interface in that it contains the type, version and platform fields. In this case, the fields can be prefixed by comparators and can be wildcards (asterisk: *).

type and platform can be prefixed by the following comparators: equal =, unequal !, and asterisk *.

The version field can be prefixed by the following comparators: equal =, unequal !, asterisk *, less than <, less than equal <=, greater than > and greater than equal >=.

The value of a field that is prefixed by an asterisk becomes obsolete and can be null.


Method Summary
 boolean contains(IUserAgent userAgent)
          Deprecated. Indicates whether a specified user agent is contained in this user agent set.
 String getName()
          Deprecated. Gets the user agent set name.
 boolean isEmpty()
          Deprecated. Indicates if this user agent set is empty.
 int size()
          Deprecated. Gets the number of user agent patterns in this user agent set.
 

Method Detail

getName

String getName()
Deprecated. 
Gets the user agent set name.

Returns:
the user agent set name, null if it was created without assigning a name

isEmpty

boolean isEmpty()
Deprecated. 
Indicates if this user agent set is empty.

Returns:
true if the user agent set is empty, false if not

size

int size()
Deprecated. 
Gets the number of user agent patterns in this user agent set.

Returns:
the number of elements in the set

contains

boolean contains(IUserAgent userAgent)
Deprecated. 
Indicates whether a specified user agent is contained in this user agent set.

Parameters:
userAgent - a user agent
Returns:
true if the user agent is an element of this user agent set, false if not
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS [sap.com] tc/ep/useragent/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice