use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class BaseUndertowTest 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;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class UndertowHttpProducerSessionTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndiRegistry = super.createRegistry();
jndiRegistry.bind("instanceCookieHandler", new InstanceCookieHandler());
jndiRegistry.bind("exchangeCookieHandler", new ExchangeCookieHandler());
return jndiRegistry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class RestUndertowHttpGetTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
UndertowHttpBinding binding = new DefaultUndertowHttpBinding();
jndi.bind("mybinding", binding);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class Http4UrlRewriteModTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
// START SNIPPET: e1
HttpUrlRewrite myRewrite = new HttpUrlRewrite();
myRewrite.setModRewriteConfText("RewriteRule page/([^/\\.]+)/?$ index.php?page=$1 [L]");
// END SNIPPET: e1
jndi.bind("myRewrite", myRewrite);
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class Http4UrlRewritePingQueryTest 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