| org.apache.jetspeed.profiler.rules.RuleCriterionResolver
All known Subclasses: org.apache.jetspeed.profiler.rules.impl.UserAttributeResolver, org.apache.jetspeed.profiler.rules.impl.CountryCriterionResolver, org.apache.jetspeed.profiler.rules.impl.UserCriterionResolver, org.apache.jetspeed.profiler.rules.impl.IPCriterionResolver, org.apache.jetspeed.profiler.rules.impl.PathResolver, org.apache.jetspeed.profiler.rules.impl.NavigationCriterionResolver, org.apache.jetspeed.profiler.rules.impl.LanguageCriterionResolver, org.apache.jetspeed.profiler.rules.impl.DomainCriterionResolver, org.apache.jetspeed.profiler.rules.impl.GroupCriterionResolver, org.apache.jetspeed.profiler.rules.impl.UserAgentCriterionResolver, org.apache.jetspeed.profiler.rules.impl.StandardResolver, org.apache.jetspeed.profiler.rules.impl.PathSessionResolver, org.apache.jetspeed.profiler.rules.impl.SessionResolver, org.apache.jetspeed.profiler.rules.impl.RequestSessionResolver, org.apache.jetspeed.profiler.rules.impl.RoleCriterionResolver, org.apache.jetspeed.profiler.rules.impl.GroupRoleUserCriterionResolver, org.apache.jetspeed.profiler.rules.impl.MediatypeCriterionResolver, org.apache.jetspeed.profiler.rules.impl.HardCodedResolver, org.apache.jetspeed.profiler.rules.impl.RoleComboCriterionResolver, org.apache.jetspeed.profiler.rules.impl.HostnameCriterionResolver,
RuleCriterionResolver | public interface RuleCriterionResolver extends Serializable(Code) | | Resolves rule criterion based on a single criterion and
runtime request context state. Note all resolvers should
look at the criterion's value if they fail to find it
author: David Sean Taylor version: $Id: RuleCriterionResolver.java 516448 2007-03-09 16:25:47Z ate $ |
COUNTRY | final public static String COUNTRY(Code) | | first check request parameter, then check country code in the request context
|
GROUP | final public static String GROUP(Code) | | first check request parameter, then check group in the request context
|
GROUP_ROLE_USER | final public static String GROUP_ROLE_USER(Code) | | look for group, then role, then user
|
HARD_CODED | final public static String HARD_CODED(Code) | | look at hard-coded criterion value only
|
LANGUAGE | final public static String LANGUAGE(Code) | | first check request parameter, then check language in the request context
|
MEDIATYPE | final public static String MEDIATYPE(Code) | | first check request parameter, then check media type in the request context
|
NAVIGATION | final public static String NAVIGATION(Code) | | change the current navigation path
|
PAGE | final public static String PAGE(Code) | | resolve the parameter via the request path, then value
|
PATH | final public static String PATH(Code) | | resolve the parameter via the request path, then value
|
PATH_SESSION | final public static String PATH_SESSION(Code) | | look in the request path first, then session
|
REQUEST | final public static String REQUEST(Code) | | resolve the parameter via the request parameter, then value
|
REQUEST_SESSION | final public static String REQUEST_SESSION(Code) | | look in the request first, then session
|
ROLE | final public static String ROLE(Code) | | first check request parameter, then check role in the request context
|
SESSION | final public static String SESSION(Code) | | resolve the parameter via a session attribute
|
USER | final public static String USER(Code) | | first check request parameter, then check user in the request context
|
USER_AGENT | final public static String USER_AGENT(Code) | | first check request parameter, then user agent in the request context
|
USER_ATTRIBUTE | final public static String USER_ATTRIBUTE(Code) | | look in user attributes
|
isControl | boolean isControl(RuleCriterion criterion)(Code) | | Gets the control classification of the resolver.
The control class flag |
isNavigation | boolean isNavigation(RuleCriterion criterion)(Code) | | Gets the navigation classification of the resolver.
The control class flag |
resolve | String resolve(RequestContext context, RuleCriterion criterion)(Code) | | Resolver the value for a criterion.
Parameters: context - The request context. Parameters: criterion - The criterion being evaluated. The value of the criterion or null if not found.Returns null to indicate to subclasses to continue processing. |
|
|