use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class Http4UrlRewritePingTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setConfigFile("example/urlrewrite-ping.xml");
myRewrite.setUseQueryString(false);
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class Http4UrlRewriteTest 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.impl.JndiRegistry in project camel by apache.
the class JettyUrlRewriteLoadBalanceRoundRobinTest 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.impl.JndiRegistry 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.impl.JndiRegistry in project camel by apache.
the class BaseUrlRewriteTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
Properties prop = new Properties();
prop.setProperty("port", "" + getPort());
prop.setProperty("port2", "" + getPort2());
jndi.bind("prop", prop);
return jndi;
}
Aggregations