Search in sources :

Example 6 with HttpUrlRewrite

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

Example 7 with HttpUrlRewrite

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

Example 8 with HttpUrlRewrite

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

Example 9 with HttpUrlRewrite

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

Example 10 with HttpUrlRewrite

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;
}
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