public abstract class URL extends HttpCondition implements Parameterized
Condition that inspects the entire value of the current Address.| Modifier and Type | Method and Description |
|---|---|
static URL |
captureIn(String param)
|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context) |
ParameterizedPatternParser |
getPathExpression() |
Set<String> |
getRequiredParameterNames() |
ParameterizedPatternParser |
getSchemeExpression()
Get the underlying
RegexParameterizedPatternBuilder for this URL |
static URL |
matches(String pattern)
Create a
Condition that inspects the entire value of the current Address, comparing against the
given pattern. |
void |
setParameterStore(ParameterStore store) |
URL |
withRequestBinding()
Bind each
Parameter value of the current Address to the corresponding request parameter by name. |
evaluateand, andNot, or, orNotpublic static URL matches(String pattern)
Condition that inspects the entire value of the current Address, comparing against the
given pattern.
The given pattern may be parameterized:
INBOUND:
/path/store?item=1436
/path/store?item={itemId}
/path/{store}?item={itemId}&category={catId}
...
OUTBOUND:
http://domain.com/path/store.html?item=1436
http://domain.com/path/store?item={itemId}
/path/{store}?item={itemId}&category={catId}
...
url - ParameterizedPattern to which the current Address must match.ConfigurationRuleParameterBuilder#where(String)}public URL withRequestBinding()
Parameter value of the current Address to the corresponding request parameter by name.
Only takes affect on InboundRewrite events.public boolean evaluateHttp(HttpServletRewrite event, EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getSchemeExpression()
public ParameterizedPatternParser getPathExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2019 OCPsoft. All rights reserved.