© 2003 BEA Systems, Inc.

com.bea.netuix.client.classifier
Interface ClientClassifier

All Known Implementing Classes:
ClientClassifierImpl

public interface ClientClassifier


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 isDefault(HttpServletRequest req)
          Default is the default classification label.
 boolean isRecognized(HttpServletRequest req)
          Has the client classification explicitly been set?
 

Field Detail

UNCLASSIFIED

public static final String UNCLASSIFIED
See Also:
Constant Field Values
Method Detail

getClientClassification

public String getClientClassification(HttpServletRequest req)
Derives the client classification label based on information passed with the request. Different implementations may derive this label in different ways.

Parameters:
req - The request object.
Returns:
The classification label.

isDefault

public boolean isDefault(HttpServletRequest req)
Default is the default classification label. This label can mean that the request was not resolvable to an existing label, or that it in fact does resolve to an existing label called 'default'. Default is treated by the system as a typical PC based browser.

Parameters:
req - The request object.
Returns:
true if the request resolves as default

isRecognized

public boolean isRecognized(HttpServletRequest req)
Has the client classification explicitly been set? This is not the same as asking if the classification is not default. We don't know a priori if it was explicitly set that way or, defaulted to it.

Parameters:
req - The request object.
Returns:
true if the request resolves as default
See Also:
isDefault(HttpServletRequest req)

getClassificationConfigurationFilePath

public String getClassificationConfigurationFilePath(HttpServletRequest req)
Returns the path to the client classification configuration file used for the specified ServletRequest, if possible. In many cases, such as deployments through a .war archive, the path to the file cannot be determined, and null will be returned.

Parameters:
req - The request object.
Returns:
The path to the client classification configuration file, if possible to determine; null otherwise.

© 2003 BEA Systems, Inc.

Copyright © 2003 BEA Systems, Inc. All Rights Reserved