|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ClientClassifier
Classes implementing this interface look at information in the supplied HttpServletRequest object and use that to categorize or "classify" the request originator's client into a predefined category. This is useful for customizing content delivery and look-and-feel for different browsers and / or devices.
| Field Summary | |
|---|---|
static String |
UNCLASSIFIED
|
| Method Summary | |
|---|---|
String |
getClassificationConfigurationFilePath(HttpServletRequest req)
Returns the path to the client classification configuration file used for the specified ServletRequest, if possible. |
String |
getClientClassification(HttpServletRequest req)
Derives the client classification label based on information passed with the request. |
boolean |
isClassificationMatched(HttpServletRequest request,
String classificationName)
Checks if the specified classification matches the current request data. |
boolean |
isDefault(HttpServletRequest req)
Determines if the "default" classification label applies for the supplied request. |
boolean |
isRecognized(HttpServletRequest req)
Determines if the client classification has been explicitly recognized. |
| Field Detail |
|---|
static final String UNCLASSIFIED
| Method Detail |
|---|
String getClientClassification(HttpServletRequest req)
req - The request object.
boolean isDefault(HttpServletRequest req)
req - The request object.
true if the request resolves as defaultisRecognized(HttpServletRequest req)boolean isRecognized(HttpServletRequest req)
true for isRecognized and the other, not
explicitly resolved, would return false for
isRecognzed
req - The request object.
true if the request's client classification
was resolved to a category (even "default")
explicitly.isDefault(HttpServletRequest req)
boolean isClassificationMatched(HttpServletRequest request,
String classificationName)
getClientClassification(HttpServletRequest)) due to their
potentially higher priority patterns.
request - The request object.classificationName - The name of the classification to explicitly test.
true if the named classification
matches the current request.String getClassificationConfigurationFilePath(HttpServletRequest req)
req - The request object.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||