|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Inner Class Summary | |
static interface |
IUserAgentService.IDTextPair
static inner class that stores an ID-text pair, i.e. the technical ID and a human readable text. |
| Field Summary | |
static java.lang.String |
KEY
this key is used in case of running in a Portal environment |
| Method Summary | |
IUserAgentSet |
createUserAgentSet(java.lang.String name,
java.lang.String includedPatternExpr,
java.lang.String excludedPatternExpr)
Creates a new IUserAgentSet with name name for the given pattern expressions.
|
IUserAgentService.IDTextPair[] |
getAllKnownPlatforms(java.util.Locale locale)
Returns an array of all known User Agent platforms as translated by the resource bundle |
IUserAgentService.IDTextPair[] |
getAllKnownTypes(java.util.Locale locale)
Returns an array of all known User Agent types as translated by the resource bundle |
IUserAgentService |
getNewInstance()
Returns a new instance of this User-Agent service (i.e. a clone). |
IUserAgent |
getUserAgent(java.lang.String userAgentString)
Returns the IUserAgent for the given userAgentString
The IUserAgent |
IUserAgentFamily |
getUserAgentFamily()
Returns the IUserAgentFamily for this instance that is the super set of all user agent sets that are defined by this instance.
|
IUserAgentSet |
getUserAgentSetForName(java.lang.String name)
Returns an already defined IUserAgentSet with the given name or null,
if no entry was found. |
| Field Detail |
public static final java.lang.String KEY
| Method Detail |
public IUserAgentService getNewInstance()
IUserAgentFamilypublic IUserAgent getUserAgent(java.lang.String userAgentString)
IUserAgent for the given userAgentString
The IUserAgent interface provides a cannonical representation of the
User Agent String given by an HTTP Request Header.
An IUserAgent object contains the type, version and platform of the user agent.
One can picture it as a triple: ( ua_type, ua_version, ua_platform ).
- Parameters:
userAgentString - user agent identification string as defined in RFC 2616
"Hypertext Transfer Protocol -- HTTP/1.1", chap. 14.43- Returns:
- the corresponding
IUserAgent - See Also:
IUserAgent,
IPortalComponentRequest
public IUserAgentSet createUserAgentSet(java.lang.String name,
java.lang.String includedPatternExpr,
java.lang.String excludedPatternExpr)
throws UserAgentSetException,
UserAgentPatternParserException
IUserAgentSet with name name for the given pattern expressions.
The parameters includedPatternExpr and excludedPatternExpr defines a set of
user agents where includedPatternExpr describes the set of included and
excludedPatternExpr describes the set of excluded user agents. An IUserAgent
is in this set, if and only if | EXPR_STR | ::= | P_EXPR* | the whole pattern expression string |
| P_EXPR | ::= | WS (P_NAME | P_UA) | is a list of pattern names or user agent patterns |
| P_NAME | ::= | P_ID | A pattern name is an identifier |
| P_ID | ::= | JAVA_IDENTIFIER | the syntax of an id is the same as in Java |
| P_UA | ::= | '(' WS P_TYPE WS ',' WS P_VERS WS ',' WS P_PLAT WS ')' | an user agent pattern contains pattern type, version and platform |
| P_TYPE | ::= | '*' | CMP_1? P_ID | a type pattern is either a wildcard or an id with an optional prefixed comparator |
| P_VERS | ::= | '*' | CMP_2? P_NUM | a version pattern is either a wildcard or an number with an optional prefixed comparator |
| P_PLAT | ::= | '*' | CMP_1? P_ID | a platform pattern is either a wildcard or an id with an optional prefixed comparator |
| CMP_1 | ::= | '=' | '!' | the simple comparator is either equal or unequal |
| CMP_2 | ::= | '=' | '!' | '<' | '<=' | '>' | '>=' | the complex comparator is one of = ! < > <= >= |
| P_NUM | ::= | JAVA_FLOAT | the syntax of a number is the same as for a float in Java |
The new created IUserAgentSet is added to the user agent family
name - the name for the new user agent set. This name can be used in subsequent user agent set definitionsIUserAgentSetUserAgentSetException, - if there is already an IUserAgentSet with name=name defined.UserAgentPatternParserException, - if the pattern expressions contain syntax errors.getUserAgent(String),
getUserAgentFamily(),
IUserAgentSet.contains(com.sapportals.portal.useragent.IUserAgent),
IUserAgentSet,
IUserAgent,
IUserAgentFamilypublic IUserAgentSet getUserAgentSetForName(java.lang.String name)
IUserAgentSet with the given name or null,
if no entry was found.name - the name of the user agent setIUserAgentSet object or null.createUserAgentSet(java.lang.String, java.lang.String, java.lang.String),
IUserAgentSet,
IUserAgentpublic IUserAgentFamily getUserAgentFamily()
IUserAgentFamily for this instance that is the super set of all user agent sets that are defined by this instance.
The user agent family is automatically constructed by each creation of an IUserAgentSetcreateUserAgentSet(java.lang.String, java.lang.String, java.lang.String),
IUserAgentFamilypublic IUserAgentService.IDTextPair[] getAllKnownTypes(java.util.Locale locale)
locale - the desired locale of the typesIUserAgentService.IDTextPairs of all known User Agent typesgetAllKnownPlatforms(Locale),
IUserAgentService.IDTextPair,
IUserAgentConstantspublic IUserAgentService.IDTextPair[] getAllKnownPlatforms(java.util.Locale locale)
locale - the desired locale of the platformsIUserAgentService.IDTextPairs of all known User Agent typesgetAllKnownPlatforms(Locale),
IUserAgentService.IDTextPair,
IUserAgentConstants
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||