|
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.servlet.config.rule.Join
public class Join
Rule that creates a bi-directional rewrite rule between an externally facing URL
and an internal server resource URL
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ocpsoft.rewrite.servlet.config.rule.IJoin |
|---|
IJoin.IJoinParameter, IJoin.JoinParameter |
| Constructor Summary | |
|---|---|
protected |
Join(String pattern,
boolean requestBinding)
|
| Method Summary | |
|---|---|
boolean |
evaluate(Rewrite event,
EvaluationContext context)
|
static Join |
getCurrentJoin(javax.servlet.http.HttpServletRequest request)
Retrieve the Join that was invoked on the current request; if no Join was invoked, return null. |
String |
getId()
|
ParameterizedPatternParser |
getPathExpression()
|
ParameterizedPatternParser |
getResourcexpression()
|
static Join |
nonBindingPath(String pattern)
The client-facing URL path to which this Join will apply. |
static IJoin |
path(String pattern)
The client-facing URL path to which this Join will apply. |
IJoin |
perform(Operation operation)
Define additional Operation instances to be performed when this rule matches successfully. |
void |
perform(Rewrite event,
EvaluationContext context)
|
IJoin |
to(String resource)
The internal server resource (real or virtual) to be served. |
String |
toString()
|
IJoin |
when(Condition condition)
Define additional Condition instances that must be satisfied in order for this rule to match successfully. |
IJoin.JoinParameter |
where(String parameter)
|
IJoin.JoinParameter |
where(String param,
Binding binding)
|
IJoin |
withChaining()
Allow the target of this Join to invoke another Join rule. |
IJoin |
withId(String id)
Set the ID of this Join. |
IJoin |
withInboundCorrection()
Redirect inbound requests for the internal resource to the outward facing URL instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Join(String pattern,
boolean requestBinding)
| Method Detail |
|---|
public static IJoin path(String pattern)
Join will apply. Parameters of the form "{n}" will
be bound by name to the request parameter map via Request.parameter(String), and subsequently used to
build the outbound URL by extracting values from the query string
"?n=value". To disable request parameter binding and outbound URL rewriting, instead use nonBindingPath(String)
public static Join nonBindingPath(String pattern)
Join will apply. Parameters will not be bound to the request
parameter map. To enable request parameter binding and outbound URL rewriting, instead use path(String).
public static Join getCurrentJoin(javax.servlet.http.HttpServletRequest request)
Join that was invoked on the current request; if no Join was invoked, return null.
public IJoin to(String resource)
IJoin
to in interface IJoinpublic IJoin withInboundCorrection()
IJoin
withInboundCorrection in interface IJoin
public boolean evaluate(Rewrite event,
EvaluationContext context)
evaluate in interface Conditionevaluate in interface Rule
public void perform(Rewrite event,
EvaluationContext context)
perform in interface Operationperform in interface Rulepublic IJoin.JoinParameter where(String parameter)
where in interface Parameterized<IJoin,IJoin.JoinParameter,String>
public IJoin.JoinParameter where(String param,
Binding binding)
where in interface Parameterized<IJoin,IJoin.JoinParameter,String>public String getId()
getId in interface Rulepublic IJoin when(Condition condition)
IJoinCondition instances that must be satisfied in order for this rule to match successfully.
when in interface IJoinpublic IJoin perform(Operation operation)
IJoinOperation instances to be performed when this rule matches successfully.
perform in interface IJoinpublic IJoin withId(String id)
IJoinJoin.
withId in interface IJoinpublic String toString()
toString in class Objectpublic IJoin withChaining()
IJoinJoin to invoke another Join rule. By default, once a Join has
been invoked, no more Join rules will be processed.
withChaining in interface IJoinpublic ParameterizedPatternParser getPathExpression()
getPathExpression in interface IJoinpublic ParameterizedPatternParser getResourcexpression()
getResourcexpression in interface IJoin
|
rewrite-config-servlet 2.0.0.Alpha2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||