public 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
RegexParameterizedPatternBuilder for this Scheme |
Set<String> |
getRequiredParameterNames() |
static Scheme |
matches(String pattern)
Inspect the current request scheme, comparing against the given pattern.
|
void |
setParameterStore(ParameterStore store) |
String |
toString() |
evaluatepublic static Scheme matches(String pattern)
The given pattern may be parameterized using the following format:
https
{scheme}
{scheme}-custom
... and so on
By default, matching parameter values are bound to the EvaluationContext. See
also #where(String)
public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.