|
rewrite-impl-servlet 1.0.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocpsoft.rewrite.config.ConditionBuilder
org.ocpsoft.rewrite.servlet.config.HttpCondition
org.ocpsoft.rewrite.servlet.config.Path
public class Path
A Condition that inspects the value of HttpServletRewrite.getRequestPath()
| Method Summary | |
|---|---|
static Path |
captureIn(java.lang.String param)
|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPattern |
getPathExpression()
Get the underlying ParameterizedPattern for this Path |
static Path |
matches(java.lang.String pattern)
Inspect the current request URL, comparing against the given pattern. |
java.lang.String |
toString()
|
RegexConditionParameterBuilder |
where(java.lang.String param)
|
RegexConditionParameterBuilder |
where(java.lang.String param,
Binding binding)
|
RegexConditionParameterBuilder |
where(java.lang.String param,
java.lang.String pattern)
|
RegexConditionParameterBuilder |
where(java.lang.String param,
java.lang.String pattern,
Binding binding)
|
Path |
withRequestBinding()
Bind each path parameter 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.ConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ocpsoft.rewrite.param.ParameterizedCondition |
|---|
and, andNot, or, orNot |
| Methods inherited from interface org.ocpsoft.rewrite.config.Condition |
|---|
evaluate |
| Method Detail |
|---|
public static Path matches(java.lang.String pattern)
The given pattern may be parameterized using the following format:
/example/{param}
/example/{value}/sub/{value2}
... and so on
By default, matching parameter values are bound to the EvaluationContext. See also where(String)
public static Path captureIn(java.lang.String param)
public Path withRequestBinding()
EvaluationContext.
See also where(String)
public RegexConditionParameterBuilder where(java.lang.String param)
where in interface Parameterized<ConditionParameterBuilder<RegexConditionParameterBuilder,java.lang.String>,java.lang.String>
public RegexConditionParameterBuilder where(java.lang.String param,
java.lang.String pattern)
where in interface Parameterized<ConditionParameterBuilder<RegexConditionParameterBuilder,java.lang.String>,java.lang.String>
public RegexConditionParameterBuilder where(java.lang.String param,
java.lang.String pattern,
Binding binding)
where in interface Parameterized<ConditionParameterBuilder<RegexConditionParameterBuilder,java.lang.String>,java.lang.String>
public RegexConditionParameterBuilder where(java.lang.String param,
Binding binding)
where in interface Parameterized<ConditionParameterBuilder<RegexConditionParameterBuilder,java.lang.String>,java.lang.String>
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPattern getPathExpression()
ParameterizedPattern for this Path
See also: where(String)
public java.lang.String toString()
toString in class java.lang.Object
|
rewrite-impl-servlet 1.0.2.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||