org.apache.jetspeed.profiler.rules.impl
Class StandardResolver

java.lang.Object
  extended by org.apache.jetspeed.profiler.rules.impl.StandardResolver
All Implemented Interfaces:
java.io.Serializable, RuleCriterionResolver
Direct Known Subclasses:
CountryCriterionResolver, DomainCriterionResolver, GroupCriterionResolver, HardCodedResolver, HostnameCriterionResolver, IPCriterionResolver, LanguageCriterionResolver, MediatypeCriterionResolver, RequestSessionResolver, RoleComboCriterionResolver, RoleCriterionResolver, SessionResolver, UserAgentCriterionResolver, UserAttributeResolver, UserCriterionResolver

public class StandardResolver
extends java.lang.Object
implements RuleCriterionResolver

Standard Jetspeed-1 style resolver for criterion. It first looks at the value in the request parameters. If it is null, it then falls back to the criterion record.. If it is null it gives up and returns null allowing subclasses to continue processing.

Version:
$Id: StandardResolver.java 516448 2007-03-09 16:25:47Z ate $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
static java.lang.String COMBO_DELIMITER
           
static java.lang.String VALUE_DELIMITER
           
 
Fields inherited from interface org.apache.jetspeed.profiler.rules.RuleCriterionResolver
COUNTRY, GROUP, GROUP_ROLE_USER, HARD_CODED, LANGUAGE, MEDIATYPE, NAVIGATION, PAGE, PATH, PATH_SESSION, REQUEST, REQUEST_SESSION, ROLE, ROLE_FALLBACK, SESSION, USER, USER_AGENT, USER_ATTRIBUTE
 
Constructor Summary
StandardResolver()
           
 
Method Summary
protected  java.lang.String combinePrincipals(RequestContext context, RuleCriterion criterion, javax.security.auth.Subject subject, java.lang.Class classe)
           
 boolean isControl(RuleCriterion criterion)
          Gets the control classification of the resolver.
 boolean isNavigation(RuleCriterion criterion)
          Gets the navigation classification of the resolver.
 java.lang.String resolve(RequestContext context, RuleCriterion criterion)
          Resolver the value for a criterion.
protected  java.lang.String resolvePrincipals(RequestContext context, RuleCriterion criterion, javax.security.auth.Subject subject, java.lang.Class classe)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_DELIMITER

public static final java.lang.String VALUE_DELIMITER
See Also:
Constant Field Values

COMBO_DELIMITER

public static final java.lang.String COMBO_DELIMITER
See Also:
Constant Field Values
Constructor Detail

StandardResolver

public StandardResolver()
Method Detail

resolve

public java.lang.String resolve(RequestContext context,
                                RuleCriterion criterion)
Description copied from interface: RuleCriterionResolver
Resolver the value for a criterion.

Specified by:
resolve in interface RuleCriterionResolver
Parameters:
context - The request context.
criterion - The criterion being evaluated.
Returns:
The value of the criterion or null if not found. Returns null to indicate to subclasses to continue processing.

isControl

public boolean isControl(RuleCriterion criterion)
Description copied from interface: RuleCriterionResolver
Gets the control classification of the resolver.

Specified by:
isControl in interface RuleCriterionResolver
Returns:
The control class flag

isNavigation

public boolean isNavigation(RuleCriterion criterion)
Description copied from interface: RuleCriterionResolver
Gets the navigation classification of the resolver.

Specified by:
isNavigation in interface RuleCriterionResolver
Returns:
The control class flag

resolvePrincipals

protected java.lang.String resolvePrincipals(RequestContext context,
                                             RuleCriterion criterion,
                                             javax.security.auth.Subject subject,
                                             java.lang.Class classe)

combinePrincipals

protected java.lang.String combinePrincipals(RequestContext context,
                                             RuleCriterion criterion,
                                             javax.security.auth.Subject subject,
                                             java.lang.Class classe)


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.