|
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.Path
public class Path
A Condition that inspects the value of HttpServletRewrite#getRequestPath()
| Method Summary | |
|---|---|
static Path |
captureIn(String param)
Capture the entire path portion of the Address into the given Parameter. |
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPatternParser |
getExpression()
Get the underlying ParameterizedPattern for this Path |
Set<String> |
getRequiredParameterNames()
|
static Path |
matches(String pattern)
Create a Condition that compares the current Address.getPath() to the given pattern. |
void |
setParameterStore(ParameterStore store)
|
String |
toString()
|
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.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 Path matches(String pattern)
Condition that compares the current Address.getPath() to the given pattern.
The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...
pattern - ParameterizedPattern matching the path.ConfigurationRuleParameterBuilder.where(String)public static Path captureIn(String param)
Address into the given Parameter.
param - the name of the Parameter to which the entire path portion of the Address will be
bound.public Path withRequestBinding()
Parameter to the corresponding request parameter by name.
ConfigurationRuleParameterBuilder#where(String)} {@link HttpServletRequest#getParameterMap()}
{@link RequestParameterProvider}
public boolean evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
evaluateHttp in class HttpConditionpublic ParameterizedPatternParser getExpression()
ParameterizedPattern for this Path
public String toString()
toString in class Objectpublic 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 | |||||||||