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

java.lang.Object
  extended by org.apache.jetspeed.profiler.rules.impl.StandardResolver
      extended by org.apache.jetspeed.profiler.rules.impl.DomainCriterionResolver
All Implemented Interfaces:
java.io.Serializable, RuleCriterionResolver

public class DomainCriterionResolver
extends StandardResolver
implements RuleCriterionResolver

Hostname Resolver

Version:
$Id:$
Author:
Frank Stalherm
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.profiler.rules.impl.StandardResolver
COMBO_DELIMITER, 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
DomainCriterionResolver()
           
 
Method Summary
static java.lang.String getDomain(java.lang.String servername)
          extracts the domain from the servername from RequestContext
 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.
 
Methods inherited from class org.apache.jetspeed.profiler.rules.impl.StandardResolver
combinePrincipals, resolvePrincipals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainCriterionResolver

public DomainCriterionResolver()
Method Detail

isControl

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

Specified by:
isControl in interface RuleCriterionResolver
Overrides:
isControl in class StandardResolver
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
Overrides:
isNavigation in class StandardResolver
Returns:
The control class flag

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
Overrides:
resolve in class StandardResolver
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.

getDomain

public static java.lang.String getDomain(java.lang.String servername)
extracts the domain from the servername from RequestContext

Parameters:
servername - server name from request
Returns:
domain extracted from server name


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