Search in sources :

Example 51 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) Properties(java.util.Properties)

Example 52 with JndiRegistry

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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) ExchangeCookieHandler(org.apache.camel.http.common.cookie.ExchangeCookieHandler) InstanceCookieHandler(org.apache.camel.http.common.cookie.InstanceCookieHandler)

Example 53 with 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;
}
Also used : JndiRegistry(org.apache.camel.impl.JndiRegistry) DefaultUndertowHttpBinding(org.apache.camel.component.undertow.DefaultUndertowHttpBinding) UndertowHttpBinding(org.apache.camel.component.undertow.UndertowHttpBinding) DefaultUndertowHttpBinding(org.apache.camel.component.undertow.DefaultUndertowHttpBinding)

Example 54 with JndiRegistry

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

Example 55 with JndiRegistry

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

Aggregations

JndiRegistry (org.apache.camel.impl.JndiRegistry)608 SSLContextParameters (org.apache.camel.util.jsse.SSLContextParameters)19 HttpUrlRewrite (org.apache.camel.component.urlrewrite.HttpUrlRewrite)18 KeyStoreParameters (org.apache.camel.util.jsse.KeyStoreParameters)17 DeadLetterChannelBuilder (org.apache.camel.builder.DeadLetterChannelBuilder)16 Properties (java.util.Properties)15 Test (org.junit.Test)14 TrustManagersParameters (org.apache.camel.util.jsse.TrustManagersParameters)13 ArrayList (java.util.ArrayList)11 KeyManagersParameters (org.apache.camel.util.jsse.KeyManagersParameters)11 EmbeddedDatabaseBuilder (org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder)11 File (java.io.File)10 RouteBuilder (org.apache.camel.builder.RouteBuilder)8 ExchangeCookieHandler (org.apache.camel.http.common.cookie.ExchangeCookieHandler)8 InstanceCookieHandler (org.apache.camel.http.common.cookie.InstanceCookieHandler)8 CamelContext (org.apache.camel.CamelContext)6 MockEndpoint (org.apache.camel.component.mock.MockEndpoint)6 BookCatalog (org.apache.camel.component.routebox.demo.BookCatalog)5 SimpleRouteBuilder (org.apache.camel.component.routebox.demo.SimpleRouteBuilder)5 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)5