Class Join
java.lang.Object
org.ocpsoft.rewrite.servlet.config.rule.Join
- All Implemented Interfaces:
Condition,Operation,Rule,Parameterized,JoinPath
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.- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(Rewrite event, EvaluationContext context) static JoingetCurrentJoin(jakarta.servlet.http.HttpServletRequest request) getId()static JoinPathstatic JoinPathpathNonBinding(String pattern) voidperform(Rewrite event, EvaluationContext context) voidsetParameterStore(ParameterStore store) The internal server resourceAddressto be served when the specifiedpath(String)is requested.toString()Enable the target of thisJoin, specified byto(String), to be intercepted by thepath(String)of anotherJoininstance.Specifies that requests for the original internal resource path specified byto(String)will be redirected to the updated path specified bypath(String).
-
Constructor Details
-
Join
-
-
Method Details
-
path
Create aRulespecifying the inbound requestAddressto which thisJoinwill apply. AnyParameterinstances defined in the given pattern will be bound by default to theServletRequest.getParameterMap()via theRequestParameterProviderSPI.To disable
RequestBindingparameterBinding, instead usepathNonBinding(String).The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...- Parameters:
pattern-ParameterizedPatternmatching the requested path.- See Also:
-
pathNonBinding
Create aRulespecifying the inbound requestAddressto which thisJoinwill apply. AnyParameterinstances defined in the given pattern will NOT be bound by default to theServletRequest.getParameterMap().To enable
RequestBindingparameterBinding, instead usepath(String).The given pattern may be parameterized:
/example/{param}
/example/{param1}/sub/{param2}
...- Parameters:
pattern-ParameterizedPatternmatching the requested path.- See Also:
-
getCurrentJoin
-
to
Description copied from interface:JoinPathThe internal server resourceAddressto be served when the specifiedpath(String)is requested.The given resource path may be parameterized:
/example/{param}.html
/css/{value}.css
... -
withInboundCorrection
Specifies that requests for the original internal resource path specified byto(String)will be redirected to the updated path specified bypath(String). -
withChaining
Enable the target of thisJoin, specified byto(String), to be intercepted by thepath(String)of anotherJoininstance. If not activated, subsequent matchingJoininstances will not be evaluated on the currentInboundRewriteinstance. -
evaluate
-
perform
-
getId
-
toString
-
getRequiredParameterNames
- Specified by:
getRequiredParameterNamesin interfaceParameterized
-
setParameterStore
- Specified by:
setParameterStorein interfaceParameterized
-