public class IntHeaderCondition extends AbstractPropertyCondition<Integer,HttpServletExperimentState>
AbstractPropertyCondition
that retrieves values of a header parameter
from the HttpServletRequest
associated with an HttpServletExperimentState
implementation.Condition.CacheLevel
Constructor and Description |
---|
IntHeaderCondition() |
Modifier and Type | Method and Description |
---|---|
Condition.CacheLevel |
getCacheLevel()
Returns an indication of the level at which this
Condition instance may be
cached. |
Integer |
getValue(HttpServletExperimentState state)
Returns the value of the property for the given state.
|
protected Set<Integer> |
parseArgs(List<String> args)
Sub-classes should override this method to validate and extract the information they need to evalate
the state of a given
ExperimentState instance. |
evaluate, initialize
protected Set<Integer> parseArgs(List<String> args)
AbstractPropertyCondition
ExperimentState
instance.parseArgs
in class AbstractPropertyCondition<Integer,HttpServletExperimentState>
args
- the input arguments from the configurationpublic Integer getValue(HttpServletExperimentState state)
AbstractPropertyCondition
getValue
in class AbstractPropertyCondition<Integer,HttpServletExperimentState>
state
- the ExperimentState
to evaluatepublic Condition.CacheLevel getCacheLevel()
Condition
Condition
instance may be
cached.Copyright © 2013. All rights reserved.