|
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.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
| 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()
|
Set<String> |
getRequiredParameterNames()
|
static JoinPath |
path(String pattern)
The client-facing URL path to which this Join will apply. |
static JoinPath |
pathNonBinding(String pattern)
The client-facing URL path to which this Join will apply. |
void |
perform(Rewrite event,
EvaluationContext context)
|
void |
setParameterStore(ParameterStore store)
|
Join |
to(String resource)
The internal server resource (real or virtual) to be served. |
String |
toString()
|
Join |
withChaining()
Enable the 'to' target of this Join to be intercepted by the 'path' of another Join. |
Join |
withInboundCorrection()
|
| 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 JoinPath 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 pathNonBinding(String)
public static JoinPath pathNonBinding(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 Join to(String resource)
JoinPath
to in interface JoinPathpublic Join withInboundCorrection()
public Join withChaining()
Join to be intercepted by the 'path' of another Join.
public boolean evaluate(Rewrite event,
EvaluationContext context)
evaluate in interface Condition
public void perform(Rewrite event,
EvaluationContext context)
perform in interface Operationpublic String getId()
getId in interface Rulepublic 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.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||