Search in sources :

Example 11 with HttpUrlRewrite

use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.

the class HttpUrlRewriteTest 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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) HttpUrlRewrite(org.apache.camel.component.urlrewrite.HttpUrlRewrite)

Example 12 with HttpUrlRewrite

use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.

the class Http4UrlRewriteLoadBalanceFailoverTest 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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) HttpUrlRewrite(org.apache.camel.component.urlrewrite.HttpUrlRewrite)

Example 13 with HttpUrlRewrite

use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.

the class Http4UrlRewriteLoadBalanceRoundRobinTest 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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) HttpUrlRewrite(org.apache.camel.component.urlrewrite.HttpUrlRewrite)

Example 14 with HttpUrlRewrite

use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.

the class JettyUrlRewriteLoadBalanceFailoverTest 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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) HttpUrlRewrite(org.apache.camel.component.urlrewrite.HttpUrlRewrite)

Example 15 with HttpUrlRewrite

use of org.apache.camel.component.urlrewrite.HttpUrlRewrite in project camel by apache.

the class JettyUrlRewriteTest method createRegistry.

@Override
protected JndiRegistry createRegistry() throws Exception {
    JndiRegistry jndi = super.createRegistry();
    // START SNIPPET: e1
    HttpUrlRewrite myRewrite = new HttpUrlRewrite();
    myRewrite.setConfigFile("example/urlrewrite2.xml");
    // END SNIPPET: e1
    jndi.bind("myRewrite", myRewrite);
    return jndi;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) HttpUrlRewrite(org.apache.camel.component.urlrewrite.HttpUrlRewrite)

Aggregations

HttpUrlRewrite (org.apache.camel.component.urlrewrite.HttpUrlRewrite)18 JndiRegistry (org.apache.camel.impl.JndiRegistry)18