|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.DefaultConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.URL
public class URL
A Condition that inspects the entire value of the current Address.
| Method Summary | |
|---|---|
static URL |
captureIn(String param)
Create a Condition to capture the entire value of the current Address into the given
Parameter name. |
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)
|
String |
toString()
|
URL |
withRequestBinding()
Bind each Parameter value of the current Address to the corresponding request parameter by name. |
| Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpCondition |
|---|
evaluate |
| Methods inherited from class org.ocpsoft.rewrite.config.DefaultConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public 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 static URL captureIn(String param)
Condition to capture the entire value of the current Address into the given
Parameter name. This Parameter may be referenced in other Condition and Operation
instances within the current Rule.
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()
RegexParameterizedPatternBuilder for this URL
See also: #where(String)
public String toString()
toString in class Objectpublic ParameterizedPatternParser getPathExpression()
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface Parameterized
|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||