Hello,

In Contributor tests I'd like to derive the rewrite template from the
rule rather than hard coding.

Consider this:

WebHCatDeploymentContributor contributor = new WebHCatDeploymentContributor();
 UrlRewriteRulesDescriptor webhcatRules = contributor.loadRulesFromTemplate()

webhcatRules.getRule("WEBHCAT/webhcat/root/inbound").pattern().toString()
webhcatRules.getRule("WEBHCAT/webhcat/root/inbound").template().toString()

Both template and pattern methods return the pattern. At the end of
the day, I'd like to only have to know the rewrite rule name and then
derive both from the contributor. Is there a way to get the template
as well?

These come from UrlRewriteRuleDescriptorImpl.

Thanks,

Kris

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to