|
rewrite-impl-servlet 1.0.4.Final | |||||||||
| 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.Path
public class Path
A Condition that inspects the value of
HttpServletRewrite.getRequestPath()
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IPath |
|---|
IPath.IPathParameter, IPath.PathParameter |
| Method Summary | |
|---|---|
static IPath |
captureIn(String param)
|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPattern |
getPathExpression()
Get the underlying ParameterizedPattern for this Path |
static IPath |
matches(String pattern)
Inspect the current request URL, comparing against the given pattern. |
String |
toString()
|
IPath.PathParameter |
where(String param)
|
IPath.PathParameter |
where(String param,
Binding binding)
|
IPath |
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.DefaultConditionBuilder |
|---|
and, andNot, create, or, orNot, wrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ocpsoft.rewrite.config.ConditionBuilder |
|---|
and, andNot, or, orNot |
| Methods inherited from interface org.ocpsoft.rewrite.config.Condition |
|---|
evaluate |
| Method Detail |
|---|
public static IPath matches(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 only to the EvaluationContext.
See also where(String)
public static IPath captureIn(String param)
public IPath withRequestBinding()
EvaluationContext.
See also where(String)
withRequestBinding in interface IPath
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPattern getPathExpression()
ParameterizedPattern for this Path
See also: where(String)
getPathExpression in interface IPathpublic String toString()
toString in class Objectpublic IPath.PathParameter where(String param)
where in interface Parameterized<IPath,IPath.PathParameter,String>
public IPath.PathParameter where(String param,
Binding binding)
where in interface Parameterized<IPath,IPath.PathParameter,String>
|
rewrite-impl-servlet 1.0.4.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||