public abstract class Scheme extends HttpCondition implements Parameterized
Condition that inspects the value of ServletRequest.getScheme()| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getExpression()
Get the underlying
ParameterizedPatternParser for this Scheme |
Set<String> |
getRequiredParameterNames() |
static Scheme |
matches(String pattern)
Create a
Condition to inspect the current request scheme, comparing against the given pattern. |
void |
setParameterStore(ParameterStore store) |
evaluateand, andNot, or, orNotpublic static Scheme matches(String pattern)
Condition to inspect the current request scheme, comparing against the given pattern.
The given pattern may be parameterized using the following format:
https
mailto
{scheme}
{scheme}-custom
...
pattern - ParameterizedPattern specifying the Scheme of the current Address.ConfigurationRuleParameterBuilder#where(String)}public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
ParameterizedPatternParser for this Schemepublic Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2015 OCPsoft. All Rights Reserved.