|
rewrite-config-servlet 2.0.0.Alpha6 | |||||||||
| 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 value of
org.ocpsoft.rewrite.servlet.http.event.HttpServletRewrite#getRequestPath()
| Method Summary | |
|---|---|
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)
Inspect the current request URL, comparing against the given pattern. |
void |
setParameterStore(ParameterStore store)
|
String |
toString()
|
URL |
withRequestBinding()
Bind each URL 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 |
| Method Detail |
|---|
public static URL matches(String pattern)
The given pattern may be parameterized using the following format:
INBOUND:
/context-path/{param}?foo={bar} OUTBOUND:
/context-path/{param}/{param2}?foo={bar}&cab={caz}
... and so on
http://domain.com/context-path/{param}?foo={bar}
/context-path/{param}/{param2}?foo={bar}&cab={caz}
... and so on
By default, matching parameter values are bound only to the EvaluationContext.
See also #where(String)
public static URL captureIn(String param)
public URL withRequestBinding()
EvaluationContext.
See also #where(String)
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.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||