public class Join extends Object implements Rule, JoinPath, Parameterized
Rule that creates a bi-directional rewrite rule between an externally facing URL
and an internal server resource URL| Modifier | Constructor and Description |
|---|---|
protected |
Join(String pattern,
boolean requestBinding) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Rewrite event,
EvaluationContext context) |
static Join |
getCurrentJoin(javax.servlet.http.HttpServletRequest request)
|
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() |
protected Join(String pattern, boolean requestBinding)
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)
public Join to(String resource)
JoinPathpublic Join withInboundCorrection()
public Join withChaining()
Join to be intercepted by the 'path' of another Join.public boolean evaluate(Rewrite event, EvaluationContext context)
public void perform(Rewrite event, EvaluationContext context)
public Set<String> getRequiredParameterNames()
getRequiredParameterNames in interface Parameterizedpublic void setParameterStore(ParameterStore store)
setParameterStore in interface ParameterizedCopyright © 2013 OCPsoft. All Rights Reserved.