|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| 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()
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.IURL |
|---|
IURL.IURLParameter, IURL.URLParameter |
| Method Summary | |
|---|---|
static URL |
captureIn(String param)
|
boolean |
evaluateHttp(HttpServletRewrite event,
EvaluationContext context)
|
ParameterizedPatternParser |
getPathExpression()
|
ParameterizedPatternParser |
getSchemeExpression()
Get the underlying RegexParameterizedPatternBuilder for this URL |
static URL |
matches(String pattern)
Inspect the current request URL, comparing against the given pattern. |
String |
toString()
|
IURL.URLParameter |
where(String param)
|
IURL.URLParameter |
where(String param,
Binding binding)
|
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 |
| 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 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)
withRequestBinding in interface IURLpublic IURL.URLParameter where(String param)
where in interface Parameterized<IURL,IURL.URLParameter,String>
public IURL.URLParameter where(String param,
Binding binding)
where in interface Parameterized<IURL,IURL.URLParameter,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()
getPathExpression in interface IURL
|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||