|
rewrite-config-servlet 2.0.0.Beta3 | |||||||||
| 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 Address and an internal
server resource Address for the purposes of changing the Address with which the internal server
resource is accessible.
| Constructor Summary | |
|---|---|
protected |
Join(String pattern,
boolean requestBinding)
|
| Method Summary | |
|---|---|
boolean |
evaluate(Rewrite event,
EvaluationContext context)
|
static Join |
getCurrentJoin(HttpServletRequest request)
Retrieve the Join that was invoked on the current HttpServletRequest; if no Join was
invoked, return null. |
String |
getId()
|
Set<String> |
getRequiredParameterNames()
|
static JoinPath |
path(String pattern)
Create a Rule specifying the inbound request Address to which this Join will apply. |
static JoinPath |
pathNonBinding(String pattern)
Create a Rule specifying the inbound request Address to which this Join will apply. |
void |
perform(Rewrite event,
EvaluationContext context)
|
void |
setParameterStore(ParameterStore store)
|
Join |
to(String resource)
The internal server resource Address to be served when the specified path(String) is
requested. |
String |
toString()
|
Join |
withChaining()
Enable the target of this Join, specified by to(String), to be intercepted by the
path(String) of another Join instance. |
Join |
withInboundCorrection()
Specifies that requests for the original internal resource path specified by to(String) will be
redirected to the updated path specified by path(String). |
| 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)
Rule specifying the inbound request Address to which this Join will apply. Any
Parameter instances defined in the given pattern will be bound by default to the
ServletRequest.getParameterMap() via the RequestParameterProvider SPI.
To disable RequestBinding parameter Binding, instead use pathNonBinding(String).
The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...
pattern - ParameterizedPattern matching the requested path.ConfigurationRuleParameterBuilder.where(String)public static JoinPath pathNonBinding(String pattern)
Rule specifying the inbound request Address to which this Join will apply. Any
Parameter instances defined in the given pattern will NOT be bound by default to the
ServletRequest.getParameterMap().
To enable RequestBinding parameter Binding, instead use path(String).
The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...
pattern - ParameterizedPattern matching the requested path.ConfigurationRuleParameterBuilder.where(String)public static Join getCurrentJoin(HttpServletRequest request)
Join that was invoked on the current HttpServletRequest; if no Join was
invoked, return null.
public Join to(String resource)
JoinPathAddress to be served when the specified path(String) is
requested.
The given resource path may be parameterized:
/example/{param}.html
/css/{value}.css
...
to in interface JoinPathConfigurationRuleParameterBuilder#where(String)}public Join withInboundCorrection()
to(String) will be
redirected to the updated path specified by path(String).
public Join withChaining()
Join, specified by to(String), to be intercepted by the
path(String) of another Join instance. If not activated, subsequent matching Join
instances will not be evaluated on the current InboundRewrite instance.
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.Beta3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||