use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.
the class JettyUrlRewriteModTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setModRewriteConfText("RewriteRule page/([^/\\.]+)/?$ index.php?page=$1 [L]");
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.
the class HttpUrlRewriteLoadBalanceFailoverTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setConfigFile("example/urlrewrite2.xml");
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.
the class HttpUrlRewriteLoadBalanceRoundRobinTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setConfigFile("example/urlrewrite2.xml");
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.
the class HttpUrlRewriteModFileTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setModRewriteConfFile("example/modrewrite.cfg");
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.
the class HttpUrlRewritePingQueryTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setConfigFile("example/urlrewrite-ping.xml");
myRewrite.setUseQueryString(true);
jndi.bind("myRewrite", myRewrite);
return jndi;
}
Aggregations